Just to end the discussion and also to thank both Mr. Garret Wilson and
Mr. Leif Halvard Silli for sharing their experiences with us.
On 11/30/2015 12:55 PM, Leif Halvard Silli wrote:
Reading the above page and your comments below, it is evident that
problems could occur even if XXE on Windows started to produce EOL as
CRLF.
We agree with that. That's why we think XXE is not the right tool for
Mr. Garret Wilson. We don't think Mr. Garret Wilson will ever like how
XXE "indents" the XHTML files and this, no matter what save options he
may choose.
http://www.xmlmind.com/xmleditor/_distrib/doc/help/saveOptions.html
Garret Wilson wrote:
Is using System.getProperty("line.separator") really that hard? Why does XXE
insist in doing things that are against accept best practices and standard protocol (for
decades now)? Is it really, really that hard? Why should I change my workflow just
because some developer couldn't be bothered to do it the right way? It's just a single
line! It's no mystery! This has been here since Java 1.0 I believe...
Leif Halvard Silli wrote:
Given how important/impractical the EOL issue sometimes is, it seems
possible that the XMLmind developers made a conscious choice to not
follow the Windows platform standard for a, potentially, defensible
reason.
We don't care very much about the physical representation of XML on
disk. This is the real reason why we never bothered following the
Windows platform standards in terms of line separators.
This being said, we have no technical or philosophical problems about
implementing a "Line Separator" save option. The possible values for
this option could be no less than:
(1) Always LF - Our default for historical reasons.
(2) Always CRLF.
(3) Platform native line separator.
(4) Same line separator as in the XML source file.
Just implementing "(3) Platform native line separator" would not be a
good idea.
What prevents us from implementing this save option is that Mr. Garret
Wilson is the first (potential) user to ever request this feature.
If other users are interested, we could implement this feature in the
next release.
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support