From f8ee96970add3d34da6ad3a314979b31e58d6d22 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 29 May 2024 09:05:23 +0200 Subject: [PATCH] Make work experience bulletpoints optional By supplying `bulletpoints_show = False` to the experience function, the bullet points under each work experience heading will be entirely removed so only the work experience names themselves remain. Good for a general CV, or non-american style listings. --- processing/content.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/processing/content.py b/processing/content.py index 1d00895..79ee048 100644 --- a/processing/content.py +++ b/processing/content.py @@ -23,7 +23,8 @@ def experience_to_md( data: dict[str, Any], lang: str = "en", headline: str = "", - subdued_publications: bool = True, + subdued_publications: bool = True, # slightly off-color presentation + bulletpoints_show: bool = True, ): if "experience" not in data: return "" @@ -36,8 +37,9 @@ def experience_to_md( if "publication" in exp: md += _publication_md(exp["publication"][lang], subdued_publications) - for point in exp["bullets"]: - md += f"* {point[lang]}\n" + if bulletpoints_show: + for point in exp["bullets"]: + md += f"* {point[lang]}\n" md += "\n\n" return md