Dima Tisnek <dim...@gmail.com> added the comment: Thanks Caio, your test case covers my issue; seeing these spelt out got me thinking, there are perhaps 3~4 different cases:
def f0(): s = """select some sql from somewhere; -- cannot be reindented""" def f1(): """ Multiline text docstring should be reindented """ def f2(): """ should example be reindented inside docstring? if f2(): print "great" """ def f3(): """ # should doctest be reindented inside docstring? >>> if f3(): ... print "yes" ... else: ... print "no" ... no """ ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12930> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com