MArk wrote:
I am looking at using Tidy to clean up some html, but having a few problems running it.
The gem seems to be installed ok,
But according to the rDoc I need to give the path of tidylib.so
I have 300 years experience in C and so files on Linux, and I couldn't get that working either.
I only use Tidy in one place. When upgrading legacy HTML to RHTML, I Tidy it first, with the command line:
tidy -asxhtml -i -m myFile.html
That cleans up the style, so my assert_xml (generally) works safely on it in tests.
Google for my street name and assert_tidy for a great wrapper, to help you test legacy RHTML files that are not clean enough for assert_xml.