Skip to content

Commit

Permalink
Use existing join lines function to be smart about spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasst committed Jun 7, 2018
1 parent ea53058 commit 781ff83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quotequail/_internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def find_pattern_on_line(lines, n, max_wrap_lines):
for typ, regexes in COMPILED_PATTERN_MAP.items():
for regex in regexes:
for m in range(max_wrap_lines):
match_line = ' '.join(lines[n:n+1+m])
match_line = join_wrapped_lines(lines[n:n+1+m])
if match_line.startswith('>'):
match_line = match_line[1:].strip()
if regex.match(match_line.strip()):
Expand Down

0 comments on commit 781ff83

Please sign in to comment.