Platform default end of line should be used
Brought to you by:
jaydunning
In some cases, for instance when using the <prolog> or
<before-content> tags, the new lines always have a "\n"
line terminator instead of the one specified in the
input file. If this
is not possible the default "line.separator" property
should be
asked for the correct line terminator in order to
output files
which are easier to read with an ordinary text editor.
Andreas Fänger
ESIGN Software GmbH
a.faenger(a)e-sign.com
Logged In: YES
user_id=112388
I'd like this behavior myself, but it's not feasible.
The XML standard requires parsers to normalize \r\n to \n
(see
http://www.w3.org/TR/2004/REC-xml11-20040204/#sec-line-ends\),
so Dynamator doesn't know what the input characters are.
Using the platform line separator seems like a reasonable
alternative, but it would make unit tests platform-dependent.
Two work-arounds: post-process using unix2dos or the Ant
FixCRLF task, and/or find an editor that renders \n as a
newline.
Logged In: YES
user_id=112388
The second reason given below for declining this request is
incorrect. Dynamator unit tests normalize end-of-line
sequences, so the proposed change would not break unit test
portability.
I will reconsider this request.