From a144bf3c385fbbedfd76356deb4c49a6e844e181 Mon Sep 17 00:00:00 2001 From: q Date: Thu, 9 Feb 2017 22:42:18 +0200 Subject: [PATCH] fix bug in colorless mode --- reporting/src2ans | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reporting/src2ans b/reporting/src2ans index 2da80c8..7d0cebc 100755 --- a/reporting/src2ans +++ b/reporting/src2ans @@ -67,9 +67,9 @@ for row in f: else: colored=bc.nocolor_string(row) sys.stdout.write(colored.encode('utf-8')) - if opts.zero: + if opts.zero and opts.color: sys.stdout.write(bc.Z) sys.stdout.write("\n") -if opts.zero_final: +if opts.zero_final and opts.color: sys.stdout.write(bc.Z.encode('utf-8')) - +