Fix issue with leading/trailing spaces in title

See also #672
This commit is contained in:
Manuel Rüger 2025-12-03 22:25:41 +01:00
parent 888d5de655
commit 71668cac21

View File

@ -189,6 +189,9 @@ func ExtractMeta(data []byte, spaceFromCli string, titleFromH1 bool, titleFromFi
)
}
// Remove trailing spaces from title
meta.Title = strings.Trim(meta.Title, " ")
meta.Space = strings.Trim(meta.Space, " ")
return meta, data[offset:], nil
}