Menu

#1 enabling indent in the serializer eats the final tag

closed-fixed
nobody
None
5
2011-04-22
2010-03-12
No

Command Line: java -jar mxquery.jar -s indent=true -i "<Hello></Hello>"

Expected Output: <Hello/>

Real Output: nothing

Fix:
Override OutputStream::flush() in XPPOutputStream.java to be the following:

public void flush() throws IOException {
if (buf1 > 0) {
fStream.write(buf1);
}
buf1 = -1;
fStream.flush();
}

Discussion

  • Peter M. Fischer

    • status: open --> closed-fixed
     
  • Peter M. Fischer

    Fixed in trunk, will be part of next release

     

Log in to post a comment.