aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBlake DeMarcy <ofunknowndescent@gmail.com>2017-04-29 01:21:24 -0500
committerBlake DeMarcy <ofunknowndescent@gmail.com>2017-04-29 01:21:24 -0500
commitd5ae142a7f9dc382c06dca424973f4345b181c5b (patch)
tree75c81c13b1eee049753b22a206dd69ea3b5b4a26
parent61e4f499c731d814c2963726b584da4bad434f5e (diff)
downloadbbj-d5ae142a7f9dc382c06dca424973f4345b181c5b.tar.gz
fuck this is garbage
-rw-r--r--src/formatting.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/formatting.py b/src/formatting.py
index 7a24711..f9a2299 100644
--- a/src/formatting.py
+++ b/src/formatting.py
@@ -138,10 +138,8 @@ def parse_segments(text, sanitize_linequotes=True):
pg += "[linequote: %s]" % inner.strip()
else:
- compiled = apply_directives(line.rstrip())
- split_p = line[0] in punctuation
- sep = "\n" if split_p else " "
- pg += (sep + compiled) if split_p else (compiled + sep)
+ sep = "\n" if line[0] in punctuation else " "
+ pg += apply_directives(line.rstrip()) + sep
result.append(pg.rstrip())
return result
Un proyecto texto-plano.xyz