Reply to: disable text layoutApril 28, 2010 at 3:40 pm
Sometimes, the line break in XML means something, we don't actually want to get rid off it. Ideally, We anticipate that the view in the editor should be just another way to present data without changing the actual data.
Here is what we attempt to achieve.
Pass XML string to XMAX for review and editing.
As an option, editor may switch to plain text view. The reason we applying pretty print is to increase readability for raw xml and limit the usage of horizontal scroll.
After completion of editing in XMAX, return Document.xml string for the next process. At this point, the xml string return from document.xml is inserted with additional line breaks due to pretty printing setting and original line breaks are gone.