Made EvCels auto-close colors rather than bleed over. This is necessary to avoid accidental color clashes in tables that fill the cells to a |-border edge (particularly for EvForm.

This commit is contained in:
Griatch 2016-05-23 23:56:44 +02:00
parent 0d5ecb1877
commit ecf6852d46
5 changed files with 17 additions and 19 deletions

View file

@ -646,8 +646,8 @@ class EvCell(object):
"""
left = self.border_left_char * self.border_left
right = self.border_right_char * self.border_right
left = self.border_left_char * self.border_left + ANSIString('|n')
right = ANSIString('|n') + self.border_right_char * self.border_right
cwidth = self.width + self.pad_left + self.pad_right + \
max(0,self.border_left-1) + max(0, self.border_right-1)