Menu

#2 Platform default end of line should be used

open
nobody
None
5
2004-07-20
2004-07-13
Anonymous
No

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

Discussion

  • Jay Dunning

    Jay Dunning - 2004-07-19
    • milestone: --> 416558
    • status: open --> closed
     
  • Jay Dunning

    Jay Dunning - 2004-07-19

    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.

     
  • Jay Dunning

    Jay Dunning - 2004-07-20

    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.

     
  • Jay Dunning

    Jay Dunning - 2004-07-20
    • milestone: 416558 -->
    • status: closed --> open
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.