Skip to content

Commit

Permalink
Put no warnings and no bad boxes on prev line
Browse files Browse the repository at this point in the history
Produces:

No errors. No warnings. No bad boxes., etc.
  • Loading branch information
ig0774 committed Aug 23, 2016
1 parent e1c4d5a commit 854a18f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions makePDF.py
Expand Up @@ -290,7 +290,7 @@ def run ( self ):
)
content = [""]
if errors:
content.append("Errors:")
content.append("Errors:")
content.append("")
content.extend(errors)
else:
Expand All @@ -299,13 +299,15 @@ def run ( self ):
if errors:
content.extend(["", "Warnings:"])
else:
content[-1] = content[-1] + " Warnings:"
content[-1] = content[-1] + " Warnings:"
content.append("")
content.extend(warnings)
else:
if errors:
content.append("")
content.append("No warnings.")
content.append("No warnings.")
else:
content[-1] = content[-1] + " No warnings."

if badboxes and self.caller.display_bad_boxes:
if warnings or errors:
Expand All @@ -318,7 +320,9 @@ def run ( self ):
if self.caller.display_bad_boxes:
if errors or warnings:
content.append("")
content.append("No bad boxes.")
content.append("No bad boxes.")
else:
content[-1] = content[-1] + " No bad boxes."

hide_panel = {
"always": True,
Expand Down

0 comments on commit 854a18f

Please sign in to comment.