We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d403e9 commit 8427bd1Copy full SHA for 8427bd1
fprettify/__init__.py
@@ -631,7 +631,7 @@ def rm_extra_whitespace(line):
631
line_ftd = line_ftd + char
632
else:
633
if (line_ftd and line_ftd[-1] == ' ' and
634
- (not re.search(r'[\w"]', char) and not is_decl)):
+ (not re.search(r"[\w\"']", char) and not is_decl)):
635
line_ftd = line_ftd[:-1] # remove spaces except between words
636
line_ftd = line_ftd + line[pos_prev + 1:pos + 1]
637
pos_prev = pos
0 commit comments