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(`<[^>]*>`)
|
||||||
|
|||||||
@@ -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