History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: DOXIA-153
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Alexander Hars
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven Doxia

HTML tags in twiki not rendered correctly

Created: 20/Sep/07 12:12 PM   Updated: 31/Oct/07 03:02 AM
Component/s: Module - Twiki
Affects Version/s: 1.0-alpha-9
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide
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>



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Alexander Hars - 20/Sep/07 12:19 PM
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 ;


Lukas Theussl - 31/Oct/07 03:02 AM - 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.