From 9ed8237e6daf76c58ea16a4c0da872a351834864 Mon Sep 17 00:00:00 2001 From: Konstantin Alekseev Date: Tue, 14 May 2024 15:22:12 +0400 Subject: [PATCH] Fixed issues with new lines in markdown (in case if date_string or location isn't provided) --- rendercv/themes/markdown/EducationEntry.j2.md | 8 ++++---- rendercv/themes/markdown/ExperienceEntry.j2.md | 8 ++++---- rendercv/themes/markdown/NormalEntry.j2.md | 6 ++++-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/rendercv/themes/markdown/EducationEntry.j2.md b/rendercv/themes/markdown/EducationEntry.j2.md index 431f642..630b07c 100644 --- a/rendercv/themes/markdown/EducationEntry.j2.md +++ b/rendercv/themes/markdown/EducationEntry.j2.md @@ -1,9 +1,9 @@ ## <>, ((* if entry.degree *))<> in ((* endif *))<> -((* if entry.date_string *))- <> ((* endif *)) - -((* if entry.location *))- <> ((* endif *)) - +((* if entry.date_string *))- <> +((* endif *)) +((* if entry.location *))- <> +((* endif *)) ((* for item in entry.highlights *)) - <> ((* endfor *)) diff --git a/rendercv/themes/markdown/ExperienceEntry.j2.md b/rendercv/themes/markdown/ExperienceEntry.j2.md index c998edd..44c3b7e 100644 --- a/rendercv/themes/markdown/ExperienceEntry.j2.md +++ b/rendercv/themes/markdown/ExperienceEntry.j2.md @@ -1,9 +1,9 @@ ## <>, <> -((* if entry.date_string *))- <> ((* endif *)) - -((* if entry.location *))- <> ((* endif *)) - +((* if entry.date_string *))- <> +((* endif *)) +((* if entry.location *))- <> +((* endif *)) ((* for item in entry.highlights *)) - <> ((* endfor *)) diff --git a/rendercv/themes/markdown/NormalEntry.j2.md b/rendercv/themes/markdown/NormalEntry.j2.md index cfa1860..374be0b 100644 --- a/rendercv/themes/markdown/NormalEntry.j2.md +++ b/rendercv/themes/markdown/NormalEntry.j2.md @@ -1,7 +1,9 @@ ## <> -((* if entry.date_string *))- <> ((* endif *)) -((* if entry.location *))- <> ((* endif *)) +((* if entry.date_string *))- <> +((* endif *)) +((* if entry.location *))- <> +((* endif *)) ((* for item in entry.highlights *)) - <> ((* endfor *))