diff options
| author | Paul Buetow <paul@buetow.org> | 2025-01-09 22:35:57 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-01-09 22:35:57 +0200 |
| commit | 73f70adef4f1b4248a5c5da44566f834764c3dea (patch) | |
| tree | d24f58e1eab9228dc8906f0b94bd8892010682b8 /internal | |
| parent | 4576cd95a50a9da04f2fce365699db31c4f59fa0 (diff) | |
fix test
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/tags/inline_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/tags/inline_test.go b/internal/tags/inline_test.go index 9eeafaf..9fafcf8 100644 --- a/internal/tags/inline_test.go +++ b/internal/tags/inline_test.go @@ -68,9 +68,9 @@ func TestInlineExtractTagsFromContent(t *testing.T) { expectedMainContent = strings.Join(parts[1:], " ") } - if contentWithoutTags != expectedMainContent { + if contentWithoutTags != strings.TrimSpace(expectedMainContent) { t.Errorf("expected the main content to be '%s' but got '%s'", - expectedMainContent, contentWithoutTags) + expectedMainContent, strings.TrimSpace(contentWithoutTags)) } }) } |
