mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Don't relay on colorama
for ANSI color codes
This commit is contained in:
parent
96cafb3ef2
commit
1d3c9daafe
1 changed files with 2 additions and 3 deletions
|
@ -1,11 +1,10 @@
|
|||
#!/usr/bin/env python
|
||||
# encoding: utf-8
|
||||
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
from __future__ import absolute_import, unicode_literals, print_function
|
||||
from .text_exporter import TextExporter
|
||||
import re
|
||||
import sys
|
||||
import colorama
|
||||
|
||||
|
||||
class MarkdownExporter(TextExporter):
|
||||
|
@ -50,7 +49,7 @@ class MarkdownExporter(TextExporter):
|
|||
newbody = newbody + previous_line # add very last line
|
||||
|
||||
if warn_on_heading_level is True:
|
||||
print("{}WARNING{}: Headings increased past H6 on export - {} {}".format(colorama.Fore.YELLOW, colorama.Style.RESET_ALL, date_str, entry.title), file=sys.stderr)
|
||||
print("{}WARNING{}: Headings increased past H6 on export - {} {}".format("\033[33m", "\033[0m", date_str, entry.title), file=sys.stderr)
|
||||
|
||||
return "{md} {date} {title} {body} {space}".format(
|
||||
md=heading,
|
||||
|
|
Loading…
Add table
Reference in a new issue