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 Chris Tozer
Recipients Chris Tozer
Date 2015-12-15.16:16:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1450196161.19.0.609801434085.issue25871@psf.upfronthosting.co.za>
In-reply-to
Content
Two lines, one has three spaces, one has two spaces then a tab - dedent doesn't take the two spaces away...

Python 2.7.5 (default, Nov 20 2015, 02:00:19) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from textwrap import dedent
>>> dedent("   some\n  \tthing")
'   some\n  \tthing'
>>> dedent("   some\n   \tthing")
'some\n\tthing'

Looks very similar to issue 21827, but having upgraded to a newer build of 2.7 (Nov 2015, as above), I still see the same behaviour.  I assume the November build would have a fix made in October, but I don't know how the process actually works...
History
Date User Action Args
2015-12-15 16:16:01Chris Tozersetrecipients: + Chris Tozer
2015-12-15 16:16:01Chris Tozersetmessageid: <1450196161.19.0.609801434085.issue25871@psf.upfronthosting.co.za>
2015-12-15 16:16:01Chris Tozerlinkissue25871 messages
2015-12-15 16:16:00Chris Tozercreate