aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/epub.rs8
1 files changed, 2 insertions, 6 deletions
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);