summaryrefslogtreecommitdiff
path: root/gen_md.py
diff options
context:
space:
mode:
authorrusinthread <rusinthread@cock.li>2017-02-23 12:57:35 +0300
committerrusinthread <rusinthread@cock.li>2017-02-23 12:57:35 +0300
commitb294d013b98b603b24e6087833bcb2fc506fce33 (patch)
treef95671e8298c1335f2a828dfc6969c63502070f1 /gen_md.py
parent2f29cc839997673f5f6fc8f92a74a986ccd80301 (diff)
fix for multiline ciphertexts
Diffstat (limited to 'gen_md.py')
-rwxr-xr-xgen_md.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gen_md.py b/gen_md.py
index 921c468..6c63ef0 100755
--- a/gen_md.py
+++ b/gen_md.py
@@ -101,7 +101,7 @@ def main():
else:
post_buf += '\n\n'
- post_buf += '**Шифровка (тип %d)**:\n> %s\n\n' % (cipher_type, post['text'])
+ post_buf += '**Шифровка (тип %d)**:\n> %s\n\n' % (cipher_type, post['text'].replace("\n", "\n>\n"))
post_buf += '**Расшифровка:**\n> %s' % decoded_text
buf.append(post_buf)