Skip to content

Commit 8427bd1

Browse files
committed
fix #18
1 parent 5d403e9 commit 8427bd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fprettify/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def rm_extra_whitespace(line):
631631
line_ftd = line_ftd + char
632632
else:
633633
if (line_ftd and line_ftd[-1] == ' ' and
634-
(not re.search(r'[\w"]', char) and not is_decl)):
634+
(not re.search(r"[\w\"']", char) and not is_decl)):
635635
line_ftd = line_ftd[:-1] # remove spaces except between words
636636
line_ftd = line_ftd + line[pos_prev + 1:pos + 1]
637637
pos_prev = pos

0 commit comments

Comments
 (0)