From 9e9a0c2cc1f6e667e05ba1d946321f9b17625b09 Mon Sep 17 00:00:00 2001 From: James Campos Date: Thu, 24 Sep 2020 22:12:08 -0700 Subject: normal divs --- src/epub.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/epub.rs') diff --git a/src/epub.rs b/src/epub.rs index 4beff00..5551e3e 100644 --- a/src/epub.rs +++ b/src/epub.rs @@ -211,16 +211,12 @@ fn render(n: Node, c: &mut Chapter) { c.render(n, Attribute::Bold, Attribute::NoBold); c.text.push('\n'); } - "blockquote" | "p" | "tr" => { + "blockquote" | "div" | "p" | "tr" => { + // TODO compress newlines c.text.push('\n'); 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