Menu

#93 value-of should put a NL at the end of ALL lines

all
closed-duplicate
nobody
main code (54)
5
2012-06-06
2012-06-05
Jeff Hansen
No

When doing a value-of select (xmlstarlet sel -t -v), xmlstarlet 1.3.0 does not not insert a $#10 / newline after the first node is printed out. This causes the first and second node values to be mashed together. The attached patch inserts a NL after the first node.

Discussion

  • Jeff Hansen

    Jeff Hansen - 2012-06-05

    Patch against xmlstarlet 1.3.0

     
  • Jeff Hansen

    Jeff Hansen - 2012-06-05

    Looks like this was fixed in mainline with 124ac3db, by putting the NL *before* the value of the second node, instead of after.

     
  • Noam Postavsky

    Noam Postavsky - 2012-06-06

    Yeah this was reported in Bug #2563866, and fixed with 688c0c102. I recommend updating to version 1.3.1 which has the fix.

    Note that I didn't put a newline after the first node because so that value-of a single node will be the same as before, no extra newline.

     
  • Noam Postavsky

    Noam Postavsky - 2012-06-06
    • status: open --> closed-duplicate
     

Log in to post a comment.

Auth0 Logo