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.
This commit is contained in:
parent
fb3dcca8fd
commit
14c6c8ccfb
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue