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 henryl
Recipients
Date 2006-05-15.16:27:37
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The difflib.Differ() object doesn't always add a hint
for added tab characters.

eg:
import difflib
differ = difflib.Differ()
for change in differ.compare(["\tI am a buggy"],
["\t\tI am a bug"]):
	print repr(change)

Should return

'- \tI am a buggy'
'? \t          --\n'
'+ \t\tI am a bug'
'? +\n'

but actually returns (no hint for the added tab)

'- \tI am a buggy'
'? \t          --\n'
'+ \t\tI am a bug'

sys.version reports
2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit
(Intel)]
History
Date User Action Args
2007-08-23 14:40:05adminlinkissue1488943 messages
2007-08-23 14:40:05admincreate