insert br tags in feeds v1 APPLIED

Jakob Wenzel
Jakob Wenzel: 1
 insert br tags in feeds

 1 files changed, 3 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~cadence/bibliogram-devel/patches/20290/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] insert br tags in feeds Export this patch

Jakob Wenzel
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
each child in children
	!= child.getFeedItem()
Patch applied, thank you!