mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +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 != "":
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user