add info if note is html
This commit is contained in:
parent
ba379cd452
commit
8ebd9c98cf
|
@ -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:]
|
||||||
|
|
Loading…
Reference in New Issue