SID-01990: Can I wrap plain (normal) text in <p> elements?
| Status: |
Answered |
TWiki version: |
6.0.1 |
Perl version: |
v5.18.2 |
| Category: |
CategoryRendering |
Server OS: |
Ubuntu 14.04 |
Last update: |
11 years ago |
I am using the
PublishWebPlugin to convert TWiki content to XML. The fact that normal text is not wrapped in <p> elements makes the conversion difficult.
Is there an easy way to customize the HTML rendering so that all text that has the normal style is wrapped in a <p> element along with any inline element such as code and emphasis?
Thanks!
--
Peter Desjardins - 2014-11-14
Discussion and Answer
I am not sure I understand your question. The published pages are based on the publish skin. The publish skin with CSS define the look. Text in p-tabs wraps by default, and can be turned off with a
white-space: nowrap; style. Maybe I miss something.
--
Peter Thoeny - 2014-11-15
Sorry, using the word "wrap" made my question ambiguous. I meant that I would like normal text to be written inside a <p> element like this:
<p>Example of normal text.</p>
I'll take a look at the publish skin.
Thanks!
--
Peter Desjardins - 2014-11-17
Ah, now I understand. This p-tags are controlled by the TWiki rendering engine, not the skin. As for now it simply generates
<p /> tags, e.g. open/close. With a
{OpenClosePTags} configure setting you can change that to
<p></p>. However, this does not enclose normal text in p-tags, it simply adds the open & close tags between paragraphs. The TWiki rendering engine would need to be enhanced so that the p-tags enclose paragraph text. You can
hire a TWiki consultant to do that enhancement for you.
--
Peter Thoeny - 2014-11-17
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.