Skip to content

Commit

Permalink
fixed bug in Minify: need space in: or r"..."
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Szabo committed Dec 2, 2017
1 parent 16b7b7c commit a6e76e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mksingle.py
Expand Up @@ -107,7 +107,8 @@ def Minify(source, output_func):
if is_at_bol:
output_func(' ' * i)
is_at_bol = is_at_bof = 0
if pt in _NAME_OR_NUMBER and tt in _NAME_OR_NUMBER:
if pt in _NAME_OR_NUMBER and (tt in _NAME_OR_NUMBER or
(tt == _STRING and ts[0] in 'rb')):
output_func(' ')
output_func(ts)
pt, ps, is_empty_indent = tt, ts, 0
Expand Down

0 comments on commit a6e76e9

Please sign in to comment.