[issue12930] reindent.py inserts spaces in multiline literals
Caio Romão
report at bugs.python.org
Thu Sep 8 03:57:34 CEST 2011
Caio Romão <caioromao at gmail.com> added the comment:
New patch, fixing issue pointed out by gutworth and some others that came up.
I've used the following as a test input:
-----8<----------8<--------
#!/usr/bin/python
def x():
"""
This is a doc
"""
'''
Another doc.'''
s = """line one
line two
line three
'''
line five
"""
var = '''test'''
"""Third doc"""
return s
-----8<----------8<--------
The patch got way bigger than the initial version and feels a little hackish, but I couldn't come up with something better.
----------
Added file: http://bugs.python.org/file23118/caioromao-fix-12930-v2.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12930>
_______________________________________
More information about the Python-bugs-list
mailing list