Problem with "+", "++" and whitespace #26

Closed
davidkhess opened this Issue Mar 14, 2012 · 2 comments

2 participants

@davidkhess

Needed whitespace is being lost in this example.

>>> minify('''"begin"+ ++a+"end"''')
'"begin"+++a+"end";'
>>> 

The result is interpreted as a ++ postfix operator on "begin".

@rspivak
Owner

Fixed in 600861b

@rspivak rspivak closed this Mar 14, 2012
@davidkhess

Thanks!

@acatton acatton added a commit to acatton/slimit that referenced this issue Jan 26, 2015
@rspivak Bug fix: rspivak#26
Problem with "+", "++" and whitespace
065b6fd
@acatton acatton added a commit to acatton/slimit that referenced this issue Jan 26, 2015
@rspivak Add failing test for rspivak#26 db1b2b4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment