~cadence/bibliogram-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] insert br tags in feeds

Jakob Wenzel
Details
Message ID
<20210215192239.24054-1-jakobwenzel92@gmail.com>
DKIM signature
pass
Download raw message
Patch: +3 -1
FreshRSS performs input sanitation and throws away all style attributes.
Instead of relying on them for linebreaks, insert br tags.
---
 src/lib/structures/TimelineEntry.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lib/structures/TimelineEntry.js b/src/lib/structures/TimelineEntry.js
index ba49963..9cd1543 100644
--- a/src/lib/structures/TimelineEntry.js
+++ b/src/lib/structures/TimelineEntry.js
@@ -8,7 +8,9 @@ const TimelineChild = require("./TimelineChild")
require("../testimports")(collectors, TimelineChild, TimelineBaseMethods)

const rssDescriptionTemplate = compile(`
p(style='white-space: pre-line')= caption
each line in caption.split('\\n')
	= line
	<br>
each child in children
	!= child.getFeedItem()
`)
-- 
2.29.2
Details
Message ID
<20210219001748.6832b6bdda8bdff111dd1ba5@disroot.org>
In-Reply-To
<20210215192239.24054-1-jakobwenzel92@gmail.com> (view parent)
DKIM signature
pass
Download raw message
Patch applied, thank you!
Reply to thread Export thread (mbox)