export adds eol and indent inside of content/valueOf
Brought to you by:
dkuhlman
When writing an XML file, the method export in the corresponding super class should not add an eol_ at the beginning if it _hasContent(). Many parser would misinterpret the content/valueOf of this element, without a extra strip(). Also, the showIndent should also be kicked at that place.
We had to quick fix it for our main format claml2, we will wait for your fix and will then update our other formats like fhir xml, svsextelga and so on. See our merge request https://gitlab.com/elga-gmbh/malac-ct/-/merge_requests/34/diffs for what exactly we had to change.
We are aware that this is not true for further child elements. So there should be a check if there is only a text/content/valueOf alone in this element, and written without eol_.