yet more stupid tweaking
parent
5ff2cf7fbe
commit
61e4f499c7
|
@ -138,8 +138,10 @@ def parse_segments(text, sanitize_linequotes=True):
|
||||||
pg += "[linequote: %s]" % inner.strip()
|
pg += "[linequote: %s]" % inner.strip()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
sep = "\n" if line[0] in punctuation else " "
|
compiled = apply_directives(line.rstrip())
|
||||||
pg += apply_directives(line.rstrip()) + sep
|
split_p = line[0] in punctuation
|
||||||
|
sep = "\n" if split_p else " "
|
||||||
|
pg += (sep + compiled) if split_p else (compiled + sep)
|
||||||
|
|
||||||
result.append(pg.rstrip())
|
result.append(pg.rstrip())
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Reference in New Issue