aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBlake DeMarcy <ofunknowndescent@gmail.com>2017-04-29 01:18:36 -0500
committerBlake DeMarcy <ofunknowndescent@gmail.com>2017-04-29 01:18:36 -0500
commit61e4f499c731d814c2963726b584da4bad434f5e (patch)
treef73ff458d9a7be520a0614323e2485b7f02fd366 /src
parent5ff2cf7fbe58992ef8fcb2cf5645c7c1476db3ca (diff)
downloadbbj-61e4f499c731d814c2963726b584da4bad434f5e.tar.gz
yet more stupid tweaking
Diffstat (limited to 'src')
-rw-r--r--src/formatting.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/formatting.py b/src/formatting.py
index f9a2299..7a24711 100644
--- a/src/formatting.py
+++ b/src/formatting.py
@@ -138,8 +138,10 @@ def parse_segments(text, sanitize_linequotes=True):
pg += "[linequote: %s]" % inner.strip()
else:
- sep = "\n" if line[0] in punctuation else " "
- pg += apply_directives(line.rstrip()) + sep
+ 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)
result.append(pg.rstrip())
return result
Un proyecto texto-plano.xyz