I can reproduce this with the latest binary from http://tidy.sourceforge.net/ as well.
A simple test case seems to be:
echo "<p><a href='/'>foo</a> bar</p>" | tidy --quiet yes --show-warnings no --input-xml yes
This produces:
"<p> <a href='/'>foo</a>bar</p>"
There are multiple bug reports about whitespace removal/addition in "-xml" mode on http://sourceforge.net/tracker/?group_id=27659 . For instance: http://sourceforge.net/tracker/?group_id=27659&atid=390963&func=detail&aid=449348 and http://sourceforge.net/tracker/?group_id=27659&atid=390963&func=detail&aid=1104229 . I _think_ creating a minimal testcase and reporting it upstream may be a good next step...
I can reproduce this with the latest binary from http:// tidy.sourceforg e.net/ as
well.
A simple test case seems to be:
echo "<p><a href='/'>foo</a> bar</p>" | tidy --quiet yes --show-warnings no
--input-xml yes
This produces:
"<p> '>foo</ a>bar</ p>"
<a href='/
There are multiple bug reports about whitespace removal/addition in "-xml" mode sourceforge. net/tracker/ ?group_ id=27659 . For instance: sourceforge. net/tracker/ ?group_ id=27659& atid=390963& func=detail& aid=449348 sourceforge. net/tracker/ ?group_ id=27659& atid=390963& func=detail& aid=1104229
on http://
http://
and
http://
. I _think_ creating a minimal testcase and reporting it upstream may be a good
next step...