fix missing newline in community note in embeds

This commit is contained in:
Cynthia Foxwell 2025-04-05 10:46:46 -06:00
parent 33db7b46cb
commit 900054bab0
No known key found for this signature in database

View File

@ -43,7 +43,7 @@ proc formatTweetForMastoAPI*(tweet: Tweet, cfg: Config, prefs: Prefs): string =
let
note = get(tweet.birdwatch)
noteContent = replaceUrls(note.text, prefs)
content &= &"\n<blockquote><b>ⓘ {note.title}</b>\n{noteContent}</blockquote>"
content &= &"\n\n<blockquote><b>ⓘ {note.title}</b>\n{noteContent}</blockquote>"
result = content.replace("\n", "<br>")