fix bug in colorless mode
This commit is contained in:
@@ -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'))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user