diff --git a/src/common/logger.py b/src/common/logger.py index 1a86e6980..e8045c74c 100644 --- a/src/common/logger.py +++ b/src/common/logger.py @@ -20,6 +20,7 @@ import os import sys import time +import sre import common.gajim from common import i18n _ = i18n._ @@ -52,6 +53,10 @@ class Logger: if not os.path.isdir(LOGPATH): print 'creating', LOGPATH, 'directory' os.mkdir(LOGPATH) + # (? 1: ji, nick = jid.split('/', 1) else: @@ -158,7 +174,17 @@ class Logger: while nb < end_line: line = fic.readline() if line: - line = line.replace('\\n', '\n') + line = self.re.sub('\n', line) + line = line.replace('\\\\', '\\') + # re = sre.compile(r'(? 2: lines.append(lineSplited)