You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Brian Minchau (JIRA)" <xa...@xml.apache.org> on 2006/04/04 18:20:10 UTC
[jira] Commented: (XALANJ-2267) XML serializer adds end-of line
after a processing-instruction when outside of an element
[ http://issues.apache.org/jira/browse/XALANJ-2267?page=comments#action_12373136 ]
Brian Minchau commented on XALANJ-2267:
---------------------------------------
Comments from JIRA bug Triage on March 7, 2006:
> Agreed to change behavior to NEVER output newline after a PI (this is a duplicate of XALANJ-1497)
The behavior was changed when the patch in XALANJ-1497 was applied.
> XML serializer adds end-of line after a processing-instruction when outside of an element
> -----------------------------------------------------------------------------------------
>
> Key: XALANJ-2267
> URL: http://issues.apache.org/jira/browse/XALANJ-2267
> Project: XalanJ2
> Type: Bug
> Components: Serialization
> Versions: 2.6
> Reporter: David Bertoni
> Priority: Minor
>
> There is code in the XML serializer to add a newline character after serializing a processing instruction:
> // Always output a newline char if not inside of an
> // element. The whitespace is not significant in that
> // case.
> if (m_elemContext.m_currentElemDepth <= 0)
> writer.write(m_lineSep, 0, m_lineSepLen);
> The whitespace is not significant if the result is an XML document, but it is if it's a general parsed entity. This is the same reason the serializer was modified not to add a newline character after the XML/text declaration.
> There are some input files to reproduce this on the corresponding Xalan-C issue:
> http://issues.apache.org/jira/browse/XALANC-598
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org