summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/main.py b/main.py
index 8139a9b..14151ed 100755
--- a/main.py
+++ b/main.py
@@ -300,7 +300,7 @@ def main():
decoded_text = decode_auto(post['text'], cipher_type)
post_buf = ''
- post_buf += '**Дата**: %s\n' % post['date']
+ post_buf += '**Дата**: %s\n\n' % post['date']
if 'pic' in post and post['pic']:
# make sure it is a list
@@ -309,7 +309,7 @@ def main():
pic_buf = []
for p in pic:
pic_buf.append('![](./img/%s =300x)' % p)
- post_buf += '**Пикрилейтед:** %s\n' % ''.join(pic_buf)
+ post_buf += '**Пикрилейтед:** %s\n\n' % ''.join(pic_buf)
if 'link' in post:
# make sure it is a list
@@ -318,17 +318,17 @@ def main():
link_buf = []
for l in link:
link_buf.append('[%s](%s)' % (l, l))
- post_buf += '**Ссылки:** %s\n' % ', '.join(link_buf)
+ post_buf += '**Ссылки:** %s\n\n' % ', '.join(link_buf)
if 'source' in post:
post_buf += '**Источник:** %s' % post['source']
if 'source_link' in post:
- post_buf += ', [%s](%s)\n' % (post['source_link'], post['source_link'])
+ post_buf += ', [%s](%s)\n\n' % (post['source_link'], post['source_link'])
else:
- post_buf += '\n'
+ post_buf += '\n\n'
- post_buf += '**Шифровка (тип %d)**: \n```\n%s\n```\n' % (cipher_type, post['text'])
- post_buf += '**Расшифровка:** \n```\n%s\n```' % decoded_text
+ post_buf += '**Шифровка (тип %d)**: \n```\n%s\n```\n\n' % (cipher_type, post['text'])
+ post_buf += '**Расшифровка:** `%s`' % decoded_text
buf.append(post_buf)