From 26842fa0bf73c3049e72b9b343788b26bea1eec8 Mon Sep 17 00:00:00 2001 From: Faye Duxovni Date: Mon, 5 Jul 2021 22:56:44 -0400 Subject: [PATCH] render linebreaks in tweets properly in RSS --- src/views/rss.nimf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/rss.nimf b/src/views/rss.nimf index 1728b02..b6db2b2 100644 --- a/src/views/rss.nimf +++ b/src/views/rss.nimf @@ -27,11 +27,10 @@ Twitter feed for: ${desc}. Generated by ${cfg.hostname} #let tweet = tweet.retweet.get(tweet) #let urlPrefix = getUrlPrefix(cfg) #let text = replaceUrl(tweet.text, prefs, absolute=urlPrefix) +

${text.replace("\n", "
\n")}

#if tweet.quote.isSome and get(tweet.quote).available: # let quoteLink = getLink(get(tweet.quote)) -

${text}
${cfg.hostname}${quoteLink}

-#else: -

${text}

+

${cfg.hostname}${quoteLink}

#end if #if tweet.photos.len > 0: # for photo in tweet.photos: