Forum: Ruby how to ignore whitespaces difference while taking htmldiff

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
55c581991eb44e46404d6465d975eb6d?d=identicon&s=25 Virendra Negi (virendra)
on 2009-05-26 12:57
hi
I want to know how can I ignore the white spaces which too get into
account while taking the difference between the two html

I mean if I have an html like this
<html>
<body>
hi in body
</body>
</html>
and suppose I insert a space between the html an body tag like this

<html>

<body>
hi in body
</body>
</html>

then that white space is also consider as a difference which is true
but I want only those differences where certian text is changed or added

that mean i want to ignore whitespaces differences

Any Idea

Thank Anyway
This topic is locked and can not be replied to.