diff options
author | Blake DeMarcy <ofunknowndescent@gmail.com> | 2017-04-29 01:21:24 -0500 |
---|---|---|
committer | Blake DeMarcy <ofunknowndescent@gmail.com> | 2017-04-29 01:21:24 -0500 |
commit | d5ae142a7f9dc382c06dca424973f4345b181c5b (patch) | |
tree | 75c81c13b1eee049753b22a206dd69ea3b5b4a26 /src | |
parent | 61e4f499c731d814c2963726b584da4bad434f5e (diff) | |
download | bbj-d5ae142a7f9dc382c06dca424973f4345b181c5b.tar.gz |
fuck this is garbage
Diffstat (limited to 'src')
-rw-r--r-- | src/formatting.py | 6 |
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 |