Structured Text: avoid <p> around html-tags
Hi, html-tags are allowed in structured text. But they are wrapped with <p>-tags too, which results in non-standard html. How can I prevent that. i.e. list and table elements, that are generated by structured text are not wrapped in <p>'s. (zope 2.6.0) I need to wrap some text in a <div>-box. -- many thanks for your replies, Elena
--On Mittwoch, 29. Januar 2003 08:42 +0100 Elena Schulz <elena.schulz@gmx.net> wrote:
Hi,
html-tags are allowed in structured text. But they are wrapped with <p>-tags too, which results in non-standard html. How can I prevent that. i.e. list and table elements, that are generated by structured text are not wrapped in <p>'s. (zope 2.6.0)
I need to wrap some text in a <div>-box.
I assume the solution is to hack the HTML generation of STXNG. Don't beat me for this answer but there is a high risk that changing the current HTML generation raise an new problem somewhere else. I suggest to switch to reStructuredText if possible. -aj
Hi Andreas, I did it but have some questions for the usage of the ZopeProduct ZReST. Is it possible to use it in the way of <dtml-var my_stx_input fmt=structured-text> and possibly without adding <html><body>tags? I just found the usage via upload and edit full document with <html><body>tags. Can the encoding="utf-8" be influenced also? -- many thanks for your replies, Elena (we could discuss it also in german on zope@dzug.org if you prefer)
I assume the solution is to hack the HTML generation of STXNG. Don't beat me for this answer but there is a high risk that changing the current HTML generation raise an new problem somewhere else. I suggest to switch to reStructuredText if possible.
-aj
--On Mittwoch, 29. Januar 2003 15:43 +0100 Elena Schulz <elena.schulz@gmx.net> wrote:
Hi Andreas,
I did it but have some questions for the usage of the ZopeProduct ZReST. Is it possible to use it in the way of <dtml-var my_stx_input fmt=structured-text> and possibly without adding <html><body>tags?
reST integration is a proposed feature for to 2.7. the implementation is finished and working of course (ajung-restructuredtext-integration-branch). -aj
participants (2)
-
Andreas Jung -
Elena Schulz