render linebreaks in tweets properly in RSS
This commit is contained in:
parent
6c5cb01b29
commit
26842fa0bf
|
@ -27,11 +27,10 @@ Twitter feed for: ${desc}. Generated by ${cfg.hostname}
|
||||||
#let tweet = tweet.retweet.get(tweet)
|
#let tweet = tweet.retweet.get(tweet)
|
||||||
#let urlPrefix = getUrlPrefix(cfg)
|
#let urlPrefix = getUrlPrefix(cfg)
|
||||||
#let text = replaceUrl(tweet.text, prefs, absolute=urlPrefix)
|
#let text = replaceUrl(tweet.text, prefs, absolute=urlPrefix)
|
||||||
|
<p>${text.replace("\n", "<br>\n")}</p>
|
||||||
#if tweet.quote.isSome and get(tweet.quote).available:
|
#if tweet.quote.isSome and get(tweet.quote).available:
|
||||||
# let quoteLink = getLink(get(tweet.quote))
|
# let quoteLink = getLink(get(tweet.quote))
|
||||||
<p>${text}<br><a href="${urlPrefix}${quoteLink}">${cfg.hostname}${quoteLink}</a></p>
|
<p><a href="${urlPrefix}${quoteLink}">${cfg.hostname}${quoteLink}</a></p>
|
||||||
#else:
|
|
||||||
<p>${text}</p>
|
|
||||||
#end if
|
#end if
|
||||||
#if tweet.photos.len > 0:
|
#if tweet.photos.len > 0:
|
||||||
# for photo in tweet.photos:
|
# for photo in tweet.photos:
|
||||||
|
|
Loading…
Reference in New Issue