Skip to content
Snippets Groups Projects
Commit aeb021a3 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

presenters.utils: Fix behaviour of setting report maximums to zero (ie. no limits)


Signed-off-by: Chris Lamb's avatarChris Lamb <lamby@debian.org>
parent 83ebe3cb
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,9 @@ def make_printer(path):
def create_limited_print_func(print_func, max_page_size):
def limited_print_func(s, force=False):
if max_page_size == 0:
print_func(s)
return
if not hasattr(limited_print_func, 'char_count'):
limited_print_func.char_count = 0
print_func(s)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment