Skip to content

Commit 768314a

Browse files
committed
Quote the suggestions
1 parent 0fad844 commit 768314a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎language_check/main.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ def main():
122122
if match.subId is not None:
123123
rule_id += '[{}]'.format(match.subId)
124124

125-
replacement_text = ', '.join(match.replacements).strip()
125+
replacement_text = ', '.join(
126+
"'{}'".format(word)
127+
for word in match.replacements).strip()
126128

127129
message = match.msg
128130

0 commit comments

Comments
 (0)