Fixed the lingering offset problem with mxp. This should fix the last part of #625.

This commit is contained in:
Griatch 2015-03-13 20:00:11 +01:00
parent 58d380fe7d
commit b30e766047

View file

@ -221,7 +221,6 @@ class ANSITextWrapper(TextWrapper):
# Maximum width for this line. # Maximum width for this line.
width = self.width - m_len(indent) width = self.width - m_len(indent)
print "width:", width
# First chunk on line is whitespace -- drop it, unless this # First chunk on line is whitespace -- drop it, unless this
# is the very beginning of the text (ie. no lines started yet). # is the very beginning of the text (ie. no lines started yet).
@ -979,7 +978,7 @@ class EvTable(object):
that may occationally have issues with UTF-8 characters. that may occationally have issues with UTF-8 characters.
header_line_char (str, optional): Character to use for underlining header_line_char (str, optional): Character to use for underlining
the header row (default is '~'). Requires `border` to not be `None`. the header row (default is '~'). Requires `border` to not be `None`.
width (int, optional): Dixed width of table. If not set, width (int, optional): Fixed width of table. If not set,
width is set by the total width of each column. This will width is set by the total width of each column. This will
resize individual columns in the vertical direction to fit. resize individual columns in the vertical direction to fit.
height (int, optional): Fixed height of table. Defaults to being unset. Width is height (int, optional): Fixed height of table. Defaults to being unset. Width is
@ -1116,7 +1115,7 @@ class EvTable(object):
"add vertical border along left table edge" "add vertical border along left table edge"
if ix == 0: if ix == 0:
ret["border_left"] = bwidth ret["border_left"] = bwidth
ret["trim_horizontal"] = bwidth #ret["trim_horizontal"] = bwidth
return ret return ret
def top_edge(ret): def top_edge(ret):