From d2a46663f1c73bf51684a6f0a3ae1e0c4ae41857 Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Sat, 29 Apr 2023 14:11:01 +0200 Subject: [PATCH] html: fix initial newline when hr first element --- src/html.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/html.rs b/src/html.rs index 32f6bc0..305b196 100644 --- a/src/html.rs +++ b/src/html.rs @@ -392,7 +392,10 @@ impl<'s> Writer<'s> { Event::Softbreak => out.write_char('\n')?, Event::Escape | Event::Blankline => {} Event::ThematicBreak(attrs) => { - out.write_str("\n