[Rest2web-develop] Macro mixes up html-tags, breaks xhtml compatibility
Brought to you by:
mjfoord
From: Christian T. <li...@hc...> - 2012-12-18 15:09:55
|
Hello, I am new to rest2web and this is my first posting to the list. The website I operate is http://chtaube.eu I need some help with a textmacro ("multiline macro") I wrote for including a <div>…</div> block into my page. Here is the macro definition: class clear(textmacros.BaseMacro): def open(self, text): return ('<div style="clear: both;">%s</div>' % ( text ) Now, the resulting html code look like this: <p><div style="clear: both;"></p> … <p></div></p> As you can see the nesting of <p> and <div> get mixed up and breaks XHTML compatibility. Is there any solution for this? Here is a test page where I use this macro: http://chtaube.eu/test.html And here is the rest2web source for it: http://chtaube.eu/test.txt Any help is appreciated. -- Christian Taube |