Remove leading and trailing whitespace

This commit is contained in:
Dusty.P
2018-06-05 00:13:54 -08:00
parent 84a7734f39
commit c7532b6ed7
+1 -1
View File
@@ -170,7 +170,7 @@ class Paginator:
item = str(item)
i = 0
if not keep_intact and not item == self._page_break:
item_parts = item.split('\n')
item_parts = item.strip().split('\n')
for part in item_parts:
if len(part) > self._max_line_length:
length = 0