From 6cff8dfc8af7a20afe8b307e29c010db7b6053d8 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 26 Aug 2025 18:57:14 +0200 Subject: HTML reader: don't drop the initial newline in a pre element. Closes #11064. --- test/Tests/Readers/HTML.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/Tests/Readers/HTML.hs b/test/Tests/Readers/HTML.hs index 5b7ab12fd..7c075de0b 100644 --- a/test/Tests/Readers/HTML.hs +++ b/test/Tests/Readers/HTML.hs @@ -130,10 +130,10 @@ tests = [ testGroup "base tag" [ test html "attributes in pre > code element" $ "
\nprint('hi')\n
" =?> - codeBlockWith ("a", ["python"], []) "print('hi')" + codeBlockWith ("a", ["python"], []) "\nprint('hi')" , test html "attributes in pre take precedence" $ - "
\nprint('hi mom!')\n
" + "
print('hi mom!')\n
" =?> codeBlockWith ("c", [], []) "print('hi mom!')" ] -- cgit v1.2.3