Browse Source

Handle case where text is empty and there is starttext.

suites/jessie-proposed-backports
Chris Lawrence 19 years ago
parent
commit
683ec9133b
  1. 3
      reportbug_ui_text.py

3
reportbug_ui_text.py

@ -58,6 +58,9 @@ def indent_wrap_text(text, starttext='', indent=0, linelen=None):
si = ''
text = ' '.join(text.split())
if not text:
return starttext+'\n'
output = textwrap.fill(text, width=linelen, initial_indent=starttext,
subsequent_indent=si)
if output.endswith('\n'):

Loading…
Cancel
Save