Maven Doxia

HTML tags in twiki not rendered correctly

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-alpha-9
  • Fix Version/s: 1.1
  • Component/s: Module - Twiki
  • Labels:
    None
  • Number of attachments :
    0

Description

TWiki formatting rules (http://twiki.org/cgi-bin/view/TWiki/TextFormattingRules) state that html tags may be included in a Twiki Page. In some cases, this is required to achieve certain effects. See the description of Verbatim Mode, where it says that <pre>...</pre> should be used in certain cases.

However, when running the mvn site on .twiki files, all "<" and ">" are replaced by "<" and ">

Steps to reproduce:
Create a maven site project.
Add a .twiki file with the following content:

---+ Twiki test

<pre>
Hello
Hello
</pre>

After the site has been generated, no <pre> tags will exist instead the following will be shown:

<pre>Hello Hello</pre>

Issue Links

Activity

Hide
Alexander Hars added a comment -

Sorry, I did not realize when I enter HTMLCHARs such as &lt ; &gt ; they will be rendered as symbols in JIRA.
Thus the last line from above is displayed differently than I expected. It should be as follows:

After the site has been generated, no <pre> tags will exist instead the following will be shown:

&lt ;pre&gt ;Hello Hello&lt ;/pre&gt ;

Show
Alexander Hars added a comment - Sorry, I did not realize when I enter HTMLCHARs such as &lt ; &gt ; they will be rendered as symbols in JIRA. Thus the last line from above is displayed differently than I expected. It should be as follows: After the site has been generated, no <pre> tags will exist instead the following will be shown: &lt ;pre&gt ;Hello Hello&lt ;/pre&gt ;
Hide
Lukas Theussl added a comment - - edited

Twiki is a text parser while html tags are handled by the xml parser in doxia. We have to find a way to mix the two in order to solve this issue.

Show
Lukas Theussl added a comment - - edited Twiki is a text parser while html tags are handled by the xml parser in doxia. We have to find a way to mix the two in order to solve this issue.
Hide
Vincent Siveton added a comment -

Fixed in r705062

Show
Vincent Siveton added a comment - Fixed in r705062

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: