diff --git a/src/utils/text2html.py b/src/utils/text2html.py index 04b0c6705a..aaf9cd4e25 100644 --- a/src/utils/text2html.py +++ b/src/utils/text2html.py @@ -51,9 +51,11 @@ class TextToHTMLparser(object): return re.sub(self.normalcode, "", text) def re_bold(self, text): - "Replace ansi hilight with strong text element." - regexp = "(?:%s)(.*?)(?=%s)" % (self.bold, self.codestop) - return re.sub(regexp, r'\1', text) + "Clean out superfluous hilights rather than set to make it match the look of telnet." + #"Replace ansi hilight with strong text element." + #regexp = "(?:%s)(.*?)(?=%s)" % (self.bold, self.codestop) + #return re.sub(regexp, r'\1', text) + return re.sub(self.bold, "", text) def re_underline(self, text): "Replace ansi underline with html underline class name."