summaryrefslogtreecommitdiff
path: root/src/xhtml.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/xhtml.py')
-rw-r--r--src/xhtml.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/xhtml.py b/src/xhtml.py
index 01955949..deb4c54f 100644
--- a/src/xhtml.py
+++ b/src/xhtml.py
@@ -174,10 +174,6 @@ colors = {
log = logging.getLogger(__name__)
-whitespace_re = re.compile(r'\s+')
-shell_colors_re = re.compile(r'(\[(?:\d+;)*(?:\d+m))')
-start_indent_re = re.compile(r'\[0;30m\[0;37m ')
-newline_indent_re = re.compile('\n\[0;37m ')
def get_body_from_message_stanza(message):
"""
@@ -191,7 +187,6 @@ def get_body_from_message_stanza(message):
return xhtml_to_poezio_colors(xhtml_body)
return message['body']
-
def xhtml_to_poezio_colors(text):
def parse_css(css):
def get_color(value):
@@ -384,7 +379,6 @@ def poezio_colors_to_html(string):
res += "</p></body>"
return res.replace('\n', '<br />')
-
def poezio_colors_to_xhtml(string):
"""
Generate a valid xhtml string from