New submission from Dima Tisnek <[email protected]>:
Given this as input:
#!/usr/bin/python
def x():
s = """line one
line two
line three"""
return s
reindent.py changes it to:
#!/usr/bin/python
def x():
s = """line one
line two
line three"""
return s
Which means that I cannot use reindent.py on any source that includes multiline
literals that are not docs.
Btw, it is generally weird that reindented file ends up with 2 spaces before
"line two".
----------
components: Demos and Tools
messages: 143679
nosy: Dima.Tisnek
priority: normal
severity: normal
status: open
title: reindent.py inserts spaces in multiline literals
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue12930>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com