mark
1
Hi,
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
e.g.
Tidy.path = ‘/usr/lib/tidylib.so’
However this file does not seem to exist, any suggestions on what I may
have missed?
(using ms windows)
mark
2
However this file does not seem to exist, any suggestions on what I may
have missed?
(using ms windows)
did you install tidy itself or just the gem? You’ll need both…
mark
3
You may need to point to Tidy.dll if you’re on Windows (Just a guess;
I really don’t know…it depends on how they built it).
–Jeremy
On 6/13/07, MArk [email protected] wrote:
e.g.
–
http://www.jeremymcanally.com/
My free Ruby e-book:
http://www.humblelittlerubybook.com/book/
My blogs:
http://www.rubyinpractice.com/
mark
4
Hi Mark,
Did you ever get an answer to this? I’m running into the same issue on
OS X.
Dan C.
mark
5
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.
–
Phlip
Test Driven Ajax (on Rails) [Book]
“Test Driven Ajax (on Rails)”
assert_xpath, assert_javascript, & assert_ajax