From 0a30be53afe3f11a6b809642abe51524a91b9e9c Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 7 May 2019 16:01:12 +0200 Subject: report: checking for None strings. --- src/ee/project/report.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/ee/project/report.py b/src/ee/project/report.py index 1e7f6f4..883e49b 100644 --- a/src/ee/project/report.py +++ b/src/ee/project/report.py @@ -15,19 +15,19 @@ class Message(object): def section_filter(s: str): - return "{}\n{}".format(s, "=" * len(s)) + return "{}\n{}".format(s, "=" * len(s)) if s else "" def subsection_filter(s: str): - return "{}\n{}".format(s, "-" * len(s)) + return "{}\n{}".format(s, "-" * len(s)) if s else "" def subsubsection_filter(s: str): - return "{}\n{}".format(s, "~" * len(s)) + return "{}\n{}".format(s, "~" * len(s)) if s else "" def subsubsubsection_filter(s: str): - return "{}\n{}".format(s, "." * len(s)) + return "{}\n{}".format(s, "." * len(s)) if s else "" def first_ref_filter(part: Part) -> Optional[types.SchematicReference]: -- cgit v1.2.3