This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pratik.potnis
Recipients pratik.potnis
Date 2009-01-09.05:49:35
SpamBayes Score 0.016506827
Marked as misclassified No
Message-id <1231480179.7.0.0322918194746.issue4889@psf.upfronthosting.co.za>
In-reply-to
Content
While using function HtmlDiff() from Library difflib, if there is
difference in caps of two strings it does not provide proper diff results.
Two strings in two different files in this context that I used are:
hostname vaijain123 and (this string is in small caps)
hostname CAVANC1001CR1 (This one is in large caps)

Expected behavior after diffing : It should show hostname changed (and
highlight it with Yellow color)

instead of this it is showing Added in one file and deleted in another
file. (Highlighting them with green and red color respectively)

When tried with same caps (either small or large) it shows expected
behavior(highlighting the strings in yellow color). Also with numbers it
works well.

I think its an issue with the CAPS of letters. difflib is not able to
differentiate between the caps of letters.
History
Date User Action Args
2009-01-09 05:49:41pratik.potnissetrecipients: + pratik.potnis
2009-01-09 05:49:39pratik.potnissetmessageid: <1231480179.7.0.0322918194746.issue4889@psf.upfronthosting.co.za>
2009-01-09 05:49:38pratik.potnislinkissue4889 messages
2009-01-09 05:49:37pratik.potniscreate