diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-07 16:01:12 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-07 16:01:12 +0200 |
commit | 0a30be53afe3f11a6b809642abe51524a91b9e9c (patch) | |
tree | ed788aaee7e210c5f24cce2f7ed526b145dbe141 /src/ee | |
parent | aa9b9d0560b6515a05c2b2c94a75a50fde25e353 (diff) | |
download | ee-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')
-rw-r--r-- | src/ee/project/report.py | 8 |
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]: |