Closed MKlamer closed 4 years ago
Hi @MKlamer ! You're right that "pretty-print" does add those white spaces around elements. The good news is the in XML processing they disappear: the processor (XSLT or XQuery) just eliminates the extras. That said, if you were to do the kind of transformation that pulls only text nodes out of your document and discards the elements, you'll see the kind of output you typed in here. And then the solution is to use regular expressions to match on a string of white spaces (like \s+
) and eliminate them--so we can deal!
@ebeshero, Thank you! As long as I know I didn't break anything, I can work around it. At the time I was trying to get an easier to read screen capture to show my committee for my proposal defense, but I think I prefer working without all the space. Good to know there's a simple solution.
Hi everyone... I've been continuing to code the manuscript and I realized that I have long lines of random whitespace throughout my document... sometimes it's appearing even within elements. I had tested pressing the "pretty print" button, so I'm assuming this is related to that. Is there a straightforward way to clean it up?
Example below: