diff --git a/src/utils/text2html.py b/src/utils/text2html.py index 5429b35c68..c091149468 100644 --- a/src/utils/text2html.py +++ b/src/utils/text2html.py @@ -76,7 +76,7 @@ class TextToHTMLparser(object): re_normal = re.compile(normal.replace("[", r"\[")) re_hilite = re.compile("(?:%s)(.*)(?=%s)" % (hilite.replace("[", r"\["), fgstop)) re_uline = re.compile("(?:%s)(.*?)(?=%s)" % (ANSI_UNDERLINE.replace("[", r"\["), fgstop)) - re_string = re.compile(r'(?P[<&>])|(?P^[ \t]+)|(?P\r\n|\r|\n)', re.S|re.M|re.I) + re_string = re.compile(r'(?P[<&>])|(?P [ \t]+)|(?P\r\n|\r|\n)', re.S|re.M|re.I) def re_color(self, text): """