mirror of https://github.com/zulip/zulip.git
generate_test_data: Fix remove_line_breaks algorithm.
This commit is contained in:
parent
dd49bec93c
commit
4350b52740
|
@ -198,10 +198,12 @@ def remove_line_breaks(fh):
|
|||
if text != "":
|
||||
para.append(text)
|
||||
else:
|
||||
if para is not None:
|
||||
if para:
|
||||
results.append(" ".join(para))
|
||||
# reset the paragraph
|
||||
para = []
|
||||
if para:
|
||||
results.append(" ".join(para))
|
||||
|
||||
return results
|
||||
|
||||
|
|
Loading…
Reference in New Issue