Remove leading and trailing whitespace
This commit is contained in:
parent
84a7734f39
commit
c7532b6ed7
@ -170,7 +170,7 @@ class Paginator:
|
|||||||
item = str(item)
|
item = str(item)
|
||||||
i = 0
|
i = 0
|
||||||
if not keep_intact and not item == self._page_break:
|
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:
|
for part in item_parts:
|
||||||
if len(part) > self._max_line_length:
|
if len(part) > self._max_line_length:
|
||||||
length = 0
|
length = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user