From b294d013b98b603b24e6087833bcb2fc506fce33 Mon Sep 17 00:00:00 2001 From: rusinthread Date: Thu, 23 Feb 2017 12:57:35 +0300 Subject: fix for multiline ciphertexts --- gen_md.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gen_md.py') 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) -- cgit v1.2.3