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 != "":
|
if text != "":
|
||||||
para.append(text)
|
para.append(text)
|
||||||
else:
|
else:
|
||||||
if para is not None:
|
if para:
|
||||||
results.append(" ".join(para))
|
results.append(" ".join(para))
|
||||||
# reset the paragraph
|
# reset the paragraph
|
||||||
para = []
|
para = []
|
||||||
|
if para:
|
||||||
|
results.append(" ".join(para))
|
||||||
|
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue