From 2adb7639a4bda9dfc4bb6451da01dd06e268f861 Mon Sep 17 00:00:00 2001 From: thomasoca Date: Sun, 14 May 2023 21:40:01 +0700 Subject: [PATCH] refactor: escape character from more fields --- templates/template.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/template.tmpl b/templates/template.tmpl index dcbb603..feaf969 100644 --- a/templates/template.tmpl +++ b/templates/template.tmpl @@ -128,7 +128,7 @@ {{if $i}} \divider {{end}} -\cvevent{{"{"}}{{.Position}}{{"}"}}{{"{"}}{{replaceUnescapedChar .Company}}{{"}"}}{{"{"}}{{.StartPeriod}} -- {{.EndPeriod}}{{"}"}}{{"{"}}{{.Location}}{{"}"}} +\cvevent{{"{"}}{{replaceUnescapedChar .Position}}{{"}"}}{{"{"}}{{replaceUnescapedChar .Company}}{{"}"}}{{"{"}}{{.StartPeriod}} -- {{.EndPeriod}}{{"}"}}{{"{"}}{{.Location}}{{"}"}} {{if $it.Descriptions}} \begin{itemize} {{range $it.Descriptions}} @@ -145,7 +145,7 @@ {{if $i}} \divider {{end}} -\cvevent{{"{"}}{{.Level}}, {{.Major}}{{if .Gpa}}, {{.Gpa}}{{end}}{{"}"}}{{"{"}}{{.Institution}}{{"}"}}{{"{"}}{{.StartPeriod}} -- {{.EndPeriod}}{{"}"}}{{"{"}}{{.Location}}{{"}"}} +\cvevent{{"{"}}{{.Level}}, {{.Major}}{{if .Gpa}}, {{.Gpa}}{{end}}{{"}"}}{{"{"}}{{replaceUnescapedChar .Institution}}{{"}"}}{{"{"}}{{.StartPeriod}} -- {{.EndPeriod}}{{"}"}}{{"{"}}{{.Location}}{{"}"}} {{if $it.Descriptions}} \begin{itemize} {{range $it.Descriptions}}