Skip to content

Commit

Permalink
Merge pull request rust-lang#1541 from ehuss/id-chapter_begin
Browse files Browse the repository at this point in the history
Remove chapter_begin id from print output.
  • Loading branch information
ehuss authored Jun 8, 2021
2 parents d9ce98d + 16c5ec4 commit dc2062a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/html_handlebars/hbs_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ impl HtmlHandlebars {
// Add page break between chapters
// See https://developer.mozilla.org/en-US/docs/Web/CSS/break-before and https://developer.mozilla.org/en-US/docs/Web/CSS/page-break-before
// Add both two CSS properties because of the compatibility issue
print_content.push_str(r#"<div id="chapter_begin" style="break-before: page; page-break-before: always;"></div>"#);
print_content
.push_str(r#"<div style="break-before: page; page-break-before: always;"></div>"#);
}
print_content.push_str(&fixed_content);

Expand Down

0 comments on commit dc2062a

Please sign in to comment.