From f00e1cc8f8568df9ae8e802f9250a36baa911570 Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 23 Sep 2020 20:59:07 -0700 Subject: div whitespace hack --- src/epub.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/epub.rs b/src/epub.rs index b3e6c49..7f203d0 100644 --- a/src/epub.rs +++ b/src/epub.rs @@ -211,6 +211,11 @@ fn render(n: Node, c: &mut Chapter) { c.render_text(n); c.text.push('\n'); } + "div" => { + // FIXME better whitespace management + c.text.push('\n'); + c.render_text(n); + } "li" => { c.text.push_str("\n- "); c.render_text(n); -- cgit v1.2.3