liftoff / pyminifier

Pyminifier is a Python code minifier, obfuscator, and compressor.
GNU General Public License v3.0
1.43k stars 221 forks source link

Broken multi-line strings inside parentheses when starts on a new line #118

Open alhashash opened 5 years ago

alhashash commented 5 years ago

For example:

foo( # Multi-line string inside parentheses
     """ Line 1
         Line 2
         Line 3
         Line 4
         Line 5
     """)

After pyminify:

foo( """ Line 1
 Line 2 Line 3 Line 4 Line 5     """)

OTH, if there is no newline before the string it works correctly.

foo(""" Line 1
        Line 2
        Line 3
        Line 4
        Line 5
     """)