add info if note is html

This commit is contained in:
quenousimporte 2024-05-14 11:47:36 +02:00
parent ba379cd452
commit 8ebd9c98cf
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ for i in range(messages, max(0, messages-N), -1):
open(filepath, "wb").write(body.replace('\r\n', '\n').encode('utf8')) open(filepath, "wb").write(body.replace('\r\n', '\n').encode('utf8'))
if content_type == "text/html": if content_type == "text/html":
print('>> html')
md = markdownify(body) md = markdownify(body)
if md[:4] == 'html': if md[:4] == 'html':
md = md[4:] md = md[4:]