https://bugs.winehq.org/show_bug.cgi?id=53965
Bug ID: 53965 Summary: Writing a new line after writing a full end element(WriteFullEndElement) Product: Wine Version: 7.21 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: xmllite Assignee: wine-bugs@winehq.org Reporter: k.kahurani@gmail.com Distribution: ---
Created attachment 73553 --> https://bugs.winehq.org/attachment.cgi?id=73553 Test case
It doesn't look possible to write a whitespace character after writing a full end element with WriteFullEndElement. It looks to me like this should be possible just like it is possible with WriteEndElement.
I have also noticed that native xmllite sometimes breaks(not sure whether this is a feature or a bug) but at times native xmllite doesn't write new lines after writing the elements. I'm not sure how exactly this happens but the possible work-around in this is to manually write new lines(with WriteWhitespace) which means this issue could easily break working code.
I'm not sure how to fix this right away so I am submitting a bug. As can be seen in the attached diff, wine doesn't pass the test but native does.
https://bugs.winehq.org/show_bug.cgi?id=53965
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- My guess is that closing a single top level element is an equivalent of end-of-document. Unless something really depends on being able to write after end-of-document, this issue could only serve for documentation purposes.
https://bugs.winehq.org/show_bug.cgi?id=53965
--- Comment #2 from David Kahurani k.kahurani@gmail.com --- My testcase does indeed demonstrate trying to write a whitespace character after closing the top level element but this issue can be observed even when not dealing with a top level element.
But, yes, I also don't think it is very important.
https://bugs.winehq.org/show_bug.cgi?id=53965
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor