diff options
| author | Paul Buetow <paul@buetow.org> | 2025-01-09 22:32:54 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-01-09 22:32:54 +0200 |
| commit | 4576cd95a50a9da04f2fce365699db31c4f59fa0 (patch) | |
| tree | 6b2ec74b2911b48aaec2f968f4ba3576e0ddfbc8 | |
| parent | f2715f0a6e055198765471020047987b6296e0d3 (diff) | |
trim space around extracted content
| -rw-r--r-- | internal/tags/inline.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/tags/inline.go b/internal/tags/inline.go index 96b9684..da31acf 100644 --- a/internal/tags/inline.go +++ b/internal/tags/inline.go @@ -77,7 +77,7 @@ func inlineExtractTagsFromContent(content string) ([]string, string, error) { } } } - return tags, strings.Join(parts[1:], " "), nil + return tags, strings.TrimSpace(strings.Join(parts[1:], " ")), nil } return []string{}, content, nil |
