fix: Use 80-char lines with centered section titles
This commit is contained in:
@@ -71,7 +71,7 @@ func (h *CVHandler) PlainText(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
// cleanPlainText removes extra whitespace, HTML tags, and wraps long lines
|
// cleanPlainText removes extra whitespace, HTML tags, and wraps long lines
|
||||||
func cleanPlainText(text string) string {
|
func cleanPlainText(text string) string {
|
||||||
const maxLineLength = 120
|
const maxLineLength = 80
|
||||||
|
|
||||||
// Remove HTML tags (from safeHTML fields)
|
// Remove HTML tags (from safeHTML fields)
|
||||||
htmlTagRe := regexp.MustCompile(`<[^>]*>`)
|
htmlTagRe := regexp.MustCompile(`<[^>]*>`)
|
||||||
|
|||||||
+10
-11
@@ -13,13 +13,13 @@ GitHub: {{.CV.Personal.GitHub}}
|
|||||||
Website: {{.CV.Personal.Website}}
|
Website: {{.CV.Personal.Website}}
|
||||||
|
|
||||||
================================================================================
|
================================================================================
|
||||||
SUMMARY
|
SUMMARY
|
||||||
================================================================================
|
================================================================================
|
||||||
|
|
||||||
{{.CV.Summary}}
|
{{.CV.Summary}}
|
||||||
|
|
||||||
================================================================================
|
================================================================================
|
||||||
EXPERIENCE
|
EXPERIENCE
|
||||||
================================================================================
|
================================================================================
|
||||||
{{range .CV.Experience}}
|
{{range .CV.Experience}}
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
@@ -37,7 +37,7 @@ Technologies: {{range $i, $t := .Technologies}}{{if $i}}, {{end}}{{$t}}{{end}}
|
|||||||
|
|
||||||
{{end}}
|
{{end}}
|
||||||
================================================================================
|
================================================================================
|
||||||
EDUCATION
|
EDUCATION
|
||||||
================================================================================
|
================================================================================
|
||||||
{{range .CV.Education}}
|
{{range .CV.Education}}
|
||||||
{{.Degree}}{{if .Field}} - {{.Field}}{{end}}
|
{{.Degree}}{{if .Field}} - {{.Field}}{{end}}
|
||||||
@@ -45,7 +45,7 @@ Technologies: {{range $i, $t := .Technologies}}{{if $i}}, {{end}}{{$t}}{{end}}
|
|||||||
{{.StartDate}} - {{.EndDate}}
|
{{.StartDate}} - {{.EndDate}}
|
||||||
{{end}}
|
{{end}}
|
||||||
================================================================================
|
================================================================================
|
||||||
TECHNICAL SKILLS
|
TECHNICAL SKILLS
|
||||||
================================================================================
|
================================================================================
|
||||||
{{range .CV.Skills.Technical}}
|
{{range .CV.Skills.Technical}}
|
||||||
## {{.Category}}
|
## {{.Category}}
|
||||||
@@ -53,14 +53,14 @@ Technologies: {{range $i, $t := .Technologies}}{{if $i}}, {{end}}{{$t}}{{end}}
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
================================================================================
|
================================================================================
|
||||||
AWARDS
|
AWARDS
|
||||||
================================================================================
|
================================================================================
|
||||||
{{range .CV.Awards}}
|
{{range .CV.Awards}}
|
||||||
{{.Title}} - {{.Issuer}} ({{.Date}})
|
{{.Title}} - {{.Issuer}} ({{.Date}})
|
||||||
{{.Description}}
|
{{.Description}}
|
||||||
{{end}}
|
{{end}}
|
||||||
================================================================================
|
================================================================================
|
||||||
PROJECTS
|
PROJECTS
|
||||||
================================================================================
|
================================================================================
|
||||||
{{range .CV.Projects}}
|
{{range .CV.Projects}}
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
@@ -74,7 +74,7 @@ Technologies: {{range $i, $t := .Technologies}}{{if $i}}, {{end}}{{$t}}{{end}}
|
|||||||
|
|
||||||
{{end}}
|
{{end}}
|
||||||
================================================================================
|
================================================================================
|
||||||
COURSES
|
COURSES
|
||||||
================================================================================
|
================================================================================
|
||||||
{{range .CV.Courses}}
|
{{range .CV.Courses}}
|
||||||
{{.Title}} - {{.Institution}} ({{.Date}})
|
{{.Title}} - {{.Institution}} ({{.Date}})
|
||||||
@@ -84,13 +84,13 @@ Technologies: {{range $i, $t := .Technologies}}{{if $i}}, {{end}}{{$t}}{{end}}
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
================================================================================
|
================================================================================
|
||||||
LANGUAGES
|
LANGUAGES
|
||||||
================================================================================
|
================================================================================
|
||||||
{{range .CV.Languages}}
|
{{range .CV.Languages}}
|
||||||
- {{.Language}}: {{.Proficiency}}{{if .Detail}} - {{.Detail}}{{end}}
|
- {{.Language}}: {{.Proficiency}}{{if .Detail}} - {{.Detail}}{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
================================================================================
|
================================================================================
|
||||||
CONTACT
|
CONTACT
|
||||||
================================================================================
|
================================================================================
|
||||||
|
|
||||||
Name: {{.CV.Personal.Name}}
|
Name: {{.CV.Personal.Name}}
|
||||||
@@ -101,6 +101,5 @@ GitHub: {{.CV.Personal.GitHub}}
|
|||||||
Website: {{.CV.Personal.Website}}
|
Website: {{.CV.Personal.Website}}
|
||||||
|
|
||||||
================================================================================
|
================================================================================
|
||||||
Generated from: {{.BaseURL}}
|
Generated from: {{.BaseURL}} | Last Updated: {{.CV.Meta.LastUpdated}}
|
||||||
Last Updated: {{.CV.Meta.LastUpdated}}
|
|
||||||
================================================================================
|
================================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user