FM bug: newline characters after PI in XML output
Hello all,
I have stumbled across a bug that has apparently been present in FM since version 7.1 and nobody ever noticed. I guess I am the only one doing this crazy stuff then. Here is the bug description:
When writing a text-only element out to XML that contains a marker (which is NOT a conditional text marker), FM introduces a newline character immediately following the PI. I found this when using a custom marker to mark the paragraphs that have a change bar in FM. I know that the @11188742 should be used to drive the change bar but the customer does not have these attributes and was not allowed to make changes to the EDD or DTD. When reading the XML back into FM and removing the markers (using them to set the change bars in the right locations again), there were extra spaces (the newline characters in the XML). The only workaround I could find is creating an event handler script that opens the XML as text file, either after writing it out or before reading it back in, and replaces all newline characters by spaces. This might cause other problems but the XML files were pretty small, so those problems did not appear in my case.
I am posting this so that you know that, in these remote corner cases, you might get observe strange behaviour with white space appearing where it should not be. In such cases, open the XML in a text editor and check whether newlines were added after your PIs.
Ciao
4everJang
