nicer linewrap algo for the small printer

workspace
Brendan Howell 4 years ago
parent b0fea04653
commit b8c9b11f0c

@ -446,7 +446,7 @@ class Bureau(object):
"""
prn = self._get_small_printer()
spliter_regex = r'.{1,' + str(self.printer["textwidth"]) + '}(?:\s+|$)'
spliter_regex = r'.{1,' + str(self.smprint["textwidth"]) + '}(?:\s+|$)'
out_text = "\r\n".join(line.strip() for line in
re.findall(splitter_regex, text))

Loading…
Cancel
Save