aboutsummaryrefslogtreecommitdiff
path: root/src/ee/project
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-05-07 16:01:12 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-05-07 16:01:12 +0200
commit0a30be53afe3f11a6b809642abe51524a91b9e9c (patch)
treeed788aaee7e210c5f24cce2f7ed526b145dbe141 /src/ee/project
parentaa9b9d0560b6515a05c2b2c94a75a50fde25e353 (diff)
downloadee-python-0a30be53afe3f11a6b809642abe51524a91b9e9c.tar.gz
ee-python-0a30be53afe3f11a6b809642abe51524a91b9e9c.tar.bz2
ee-python-0a30be53afe3f11a6b809642abe51524a91b9e9c.tar.xz
ee-python-0a30be53afe3f11a6b809642abe51524a91b9e9c.zip
report: checking for None strings.
Diffstat (limited to 'src/ee/project')
-rw-r--r--src/ee/project/report.py8
1 files changed, 4 insertions, 4 deletions
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]: