summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-01-09 22:32:54 +0200
committerPaul Buetow <paul@buetow.org>2025-01-09 22:32:54 +0200
commit4576cd95a50a9da04f2fce365699db31c4f59fa0 (patch)
tree6b2ec74b2911b48aaec2f968f4ba3576e0ddfbc8
parentf2715f0a6e055198765471020047987b6296e0d3 (diff)
trim space around extracted content
-rw-r--r--internal/tags/inline.go2
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