Not sure if it’s a great solution, but I would just use find replace allowing backslash expressions, eg:
first find: ] replace: ]\n, second find: [ replace: \n[
then use find: ^\n replace: (nothing) to remove any blank lines.
However, I’m unable to reformat xml string as suggested by that webpage of yours. I got these errors:
HTML Tidy: unknown option: w
HTML Tidy: unknown option: l
Error: Can’t open “CRLF”
Error: Can’t open “–tab-size”
Error: Can’t open “4″
I listed out tidy.exe options and it seems that “-newline” and “–tab-size” are not options. Something has changed?
Moreover, it took me some time to figure out what I was supposed to do! Maybe a little bit more explanation in that page is preferable.