Tags:
create new tag
view all tags

SID-01990: Can I wrap plain (normal) text in <p> elements?

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Can I wrap plain (normal) text in <p> elements?
SupportCategory CategoryRendering
TWiki version 6.0.1
Server OS Ubuntu 14.04
Web server Apache2
Perl version v5.18.2
Browser & version Chrome 38.0.2125.122 (64-bit)
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2014-11-17 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.