From 6791ff6a043455fb0011db0848f922861c84747e Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Wed, 8 Jul 2015 14:28:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=20=D1=86=D0=B2=D0=B5=D1=82=D0=B0=20=D0=B2=20=D1=82?= =?UTF-8?q?=D0=B5=D1=80=D0=BC=D0=B8=D0=BD=D0=B0=D0=BB=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/calculate/lib/utils/colortext/converter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/calculate/lib/utils/colortext/converter.py b/pym/calculate/lib/utils/colortext/converter.py index 0e74599..2638277 100644 --- a/pym/calculate/lib/utils/colortext/converter.py +++ b/pym/calculate/lib/utils/colortext/converter.py @@ -139,9 +139,9 @@ class ConsoleCodesConverter(BaseConverter): background = self.ColorElement(begin=cci.BACKGROUND, end=cci.BACKGROUND_END, action=self.output.setBackground) - newline = element(lambda code: "\r" in code or "\n" in code, + newline = element(lambda code: type(code) != int and ("\r" in code or "\n" in code), self.output.newLine) - tab = element(lambda code: "\t" in code, self.output.tab) + tab = element(lambda code: type(code) != int and "\t" in code, self.output.tab) self.grams = [reset, bold, halfbright, underline, nounderline, normal, invert, noinvert, reset_foreground, reset_background, foreground, background, tab, newline]