Skip to content

Commit

Permalink
normal divs
Browse files Browse the repository at this point in the history
  • Loading branch information
aeosynth committed Sep 25, 2020
1 parent 29e83d5 commit 9e9a0c2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/epub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9e9a0c2

Please sign in to comment.