diff options
| author | James Campos <james.r.campos@gmail.com> | 2020-09-24 22:12:08 -0700 | 
|---|---|---|
| committer | James Campos <james.r.campos@gmail.com> | 2020-09-24 22:12:08 -0700 | 
| commit | 9e9a0c2cc1f6e667e05ba1d946321f9b17625b09 (patch) | |
| tree | 51b4fc96e3fe925a13088b8a8d4ccbdf00b28911 | |
| parent | 29e83d5b9d435b5ce039a0e1c88fe3fba5ce551b (diff) | |
| download | bk-9e9a0c2cc1f6e667e05ba1d946321f9b17625b09.tar.gz | |
normal divs
| -rw-r--r-- | src/epub.rs | 8 | 
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); | 
