From d247ef0c793a16a14727e868b3359e7313069779 Mon Sep 17 00:00:00 2001 From: Thom Werring Date: Sun, 22 Oct 2023 13:43:03 +0200 Subject: [PATCH] Changed presentation of description --- src/cvdocs/experience.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cvdocs/experience.ts b/src/cvdocs/experience.ts index f1c0d40..80effe0 100644 --- a/src/cvdocs/experience.ts +++ b/src/cvdocs/experience.ts @@ -7,15 +7,15 @@ const formatExperience = (experience: ExperienceType) => { const workPeriod = `${formatDate(experience.startDate)} - ${ experience.endDate ? formatDate(experience.endDate) : "present" }`; - const company = experience.url ? `${experience.name}` : experience.name; + const description = experience.description.split("\n").join("

"); - return `${company}, ${experience.city}
+ return `

${company}, ${experience.city}
${experience.jobTitle}
-${workPeriod} -

${experience.description}

`; +
+

${description}

`; }; const formatDate = (date: Date, locale: string | string[] = "en-GB"): string => {