From d4bf67e94e14aabc64353ac46872d6163e665bdc Mon Sep 17 00:00:00 2001 From: Griatch Date: Tue, 23 Oct 2012 23:47:49 +0200 Subject: [PATCH] Removed conversion of multiple ansii highlights in the web client. It doesn't matter either way for me, and since it seems it does for others, I can just as well disable it so it all looks the same in webclient and telnet. This relates to one of the points in Issue 309. --- src/utils/text2html.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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."