diff options
author | James Campos <james.r.campos@gmail.com> | 2020-09-23 20:59:07 -0700 |
---|---|---|
committer | James Campos <james.r.campos@gmail.com> | 2020-09-23 20:59:07 -0700 |
commit | f00e1cc8f8568df9ae8e802f9250a36baa911570 (patch) | |
tree | 1d1cf97f914d9fd37f39fdeb5aa16f9437473e18 /src | |
parent | 2a48081b1a683b6ac22fe5bd706b619be8520872 (diff) | |
download | bk-f00e1cc8f8568df9ae8e802f9250a36baa911570.tar.gz |
div whitespace hack
Diffstat (limited to 'src')
-rw-r--r-- | src/epub.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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); |