'Format and indent' does not work with leading spaces
Posted: Tue Sep 06, 2011 3:23 am
I found that if spaces are before the XML document type declaration, it makes the XML document 'not well formed'. In addition the action 'Format and indent' does not work.
Leading spaces are superfluous but should they make the XML document 'not well formed'?
And could the 'Format and Indent' action add in a first step to remove leading spaces? So regardless of leading spaces make the XML document invalid or not, they are first removed and then the action 'Format and Indent' succeeds.
I know this is a small thing. It is that have been cutting and pasting XML from run-time logs and I always manage to paste leading spaces that I manually must remove.
Leading spaces are superfluous but should they make the XML document 'not well formed'?
And could the 'Format and Indent' action add in a first step to remove leading spaces? So regardless of leading spaces make the XML document invalid or not, they are first removed and then the action 'Format and Indent' succeeds.
I know this is a small thing. It is that have been cutting and pasting XML from run-time logs and I always manage to paste leading spaces that I manually must remove.