Page 1 of 1

Bug/inconvenience with FormatXML -> ComposeXML

Posted: Sat Aug 05, 2023 2:45 am
by jacdelad
Hi,
I don't know if this is intentional, but when I use ComposeXML with the #PB_XML_NoDeclaration flag I get two empty lines (the first line would usually contain the declaration):

Code: Select all

#XML = ~"<?xml version=\"1.0\" encoding=\"utf-8\"?><Nothing><StillNothing></StillNothing></Nothing>"

ParseXML(0,#XML)
FormatXML(0,#PB_XML_ReFormat|#PB_XML_CutNewline)
Debug ComposeXML(0,#PB_XML_NoDeclaration)
While I know I can remove them by myself, I feel like this flag should return the plain data without trailing blank lines.