From 14c6c8ccfbae133fdae2570647acf6e1f335f4c0 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 27 Jun 2023 10:38:56 +0200 Subject: [PATCH] Fix printing None if no publication for entry No adding an empty string to the resulting markdown instead of the actual content of the dict ('None') to the text. --- processing/content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processing/content.py b/processing/content.py index 92b3d51..25e003e 100644 --- a/processing/content.py +++ b/processing/content.py @@ -18,7 +18,7 @@ def experience_to_md(data: dict[str, Any], lang: str = "en", headline: str = "") md += f"## {exp['title'][lang]}\\hfill{exp['date'][lang]}\n\n" if "publication" in exp: - md += f"> {exp['publication'][lang]}\n\n" + md += f"> {exp['publication'][lang] or ''}\n\n" for point in exp["bullets"]: md += f"* {point[lang]}\n"