You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Dan Bruno (JIRA)" <ji...@apache.org> on 2019/03/29 18:12:00 UTC

[jira] [Created] (XALANJ-2622) XML Comments don't respect line-separator output property

Dan Bruno created XALANJ-2622:
---------------------------------

             Summary: XML Comments don't respect line-separator output property
                 Key: XALANJ-2622
                 URL: https://issues.apache.org/jira/browse/XALANJ-2622
             Project: XalanJ2
          Issue Type: Bug
      Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects.  Anybody can view the issue.)
            Reporter: Dan Bruno
            Assignee: Steven J. Hathaway
         Attachments: XMLSeparator.java, sample.xml

The attached XML file uses Windows line endings and contains an XML comment.

The code attached reads in the file, calls the TransformerFactory and transforms it back to a String. When this happens, the comments have Unix-style line endings despite configuring the line-separator output property to be "\r\n". The rest of the file is correct.

The attached java file reproduces the issue.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org