From d1b50598c6ba7f0ca61bb0ea5e4ff9c66c226b4e Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 19 Jul 2026 15:47:52 -1000 Subject: Keep line structure in plaintext readmes --- tests/t0200-security.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/t0200-security.sh') diff --git a/tests/t0200-security.sh b/tests/t0200-security.sh index afce715..d3ac472 100644 --- a/tests/t0200-security.sh +++ b/tests/t0200-security.sh @@ -100,6 +100,10 @@ test_expect_success 'non-markdown readme without a filter is escaped' ' ! grep "" tmp ' +test_expect_success 'non-markdown readme keeps its line structure' ' + grep "pre class=.plaintext." tmp +' + # --- Auto-submitting selects carry no inline handlers ------------------------ # A Content-Security-Policy without unsafe-inline blocks inline onchange # handlers, so the forms mark their selects and cgit.js wires them up. -- cgit v2.8.0