mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
generate_test_data: Fix remove_line_breaks algorithm.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user