aboutsummaryrefslogtreecommitdiffstats
path: root/src/epub.rs
diff options
context:
space:
mode:
authorJames Campos <james.r.campos@gmail.com>2020-09-24 22:12:08 -0700
committerJames Campos <james.r.campos@gmail.com>2020-09-24 22:12:08 -0700
commit9e9a0c2cc1f6e667e05ba1d946321f9b17625b09 (patch)
tree51b4fc96e3fe925a13088b8a8d4ccbdf00b28911 /src/epub.rs
parent29e83d5b9d435b5ce039a0e1c88fe3fba5ce551b (diff)
downloadbk-9e9a0c2cc1f6e667e05ba1d946321f9b17625b09.tar.gz
normal divs
Diffstat (limited to 'src/epub.rs')
-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);