From 49d9f3e0eaeeab234c3ec903be43b88919d98eff Mon Sep 17 00:00:00 2001 From: Sam Scholten Date: Sun, 30 Aug 2026 20:40:39 +1000 Subject: rss: render score head as HTML paragraph Descriptions render as sanitized HTML in readers, where bare newlines collapse and the feed/score line ran into the article text. Wrap the headline in

so it breaks cleanly and reads as metadata, escaped on the wire by encoding/xml as description-carried HTML should be. --- cmds/rss_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmds/rss_test.go') diff --git a/cmds/rss_test.go b/cmds/rss_test.go index ca216ca..79d6d37 100644 --- a/cmds/rss_test.go +++ b/cmds/rss_test.go @@ -51,21 +51,21 @@ func TestRenderRSSGolden(t *testing.T) { https://example.com/c mf:103 Fri, 01 Mar 2024 11:00:00 +0000 - Feed A · score 0.80 + <p><em>Feed A · score 0.80</em></p> Alpha & Omega — Feed A https://example.com/a?x=1&y=2 mf:101 Fri, 01 Mar 2024 05:00:00 +0000 - Feed A · score 0.90 · batch median 0.55 x < y + <p><em>Feed A · score 0.90 · batch median 0.55</em></p> x < y Beta — A Feed With An Extremely Long And Descri… https://example.com/b mf:102 Fri, 01 Mar 2024 05:30:00 +0000 - A Feed With An Extremely Long And Descriptive Title Here · score 0.20 · batch median 0.55 second body + <p><em>A Feed With An Extremely Long And Descriptive Title Here · score 0.20 · batch median 0.55</em></p> second body ` -- cgit v1.2.3