You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jochen Wiedmann (JIRA)" <ji...@codehaus.org> on 2006/06/15 21:45:41 UTC
[jira] Created: (DOXIA-64) FmlParser adds CDATA as text
FmlParser adds CDATA as text
----------------------------
Key: DOXIA-64
URL: http://jira.codehaus.org/browse/DOXIA-64
Project: doxia
Type: Bug
Reporter: Jochen Wiedmann
Attachments: doxia-fml-cdata.patch
The FML parser has an error in its handling of CDATA.
A CDATA section is a different syntactical representation of text. Nevertheless, its contents are simply text. But the FmlParser treats a CDATA section very different:
buffer.append( "<![CDATA[" );
buffer.append( parser.getText() );
buffer.append( "]]>" );
Consequently, the generated site contains the strings <![CDATA[, and ]]>, which it should not. The applied patch fixes the problem by handling CDATA and simple text in the same manner.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Closed: (DOXIA-64) FmlParser adds CDATA as text
Posted by "Jochen Wiedmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/DOXIA-64?page=all ]
Jochen Wiedmann closed DOXIA-64:
--------------------------------
Resolution: Fixed
Sorry, I was wrong. For reasons I don't understand, the CDATA section will be removed in the trunk, as can be seen when running the FmlParserTest.
> FmlParser adds CDATA as text
> ----------------------------
>
> Key: DOXIA-64
> URL: http://jira.codehaus.org/browse/DOXIA-64
> Project: doxia
> Type: Bug
> Reporter: Jochen Wiedmann
> Attachments: doxia-fml-cdata.patch
>
>
> The FML parser has an error in its handling of CDATA.
> A CDATA section is a different syntactical representation of text. Nevertheless, its contents are simply text. But the FmlParser treats a CDATA section very different:
> buffer.append( "<![CDATA[" );
> buffer.append( parser.getText() );
> buffer.append( "]]>" );
> Consequently, the generated site contains the strings <![CDATA[, and ]]>, which it should not. The applied patch fixes the problem by handling CDATA and simple text in the same manner.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira