Page Break showing in preview, not breaking in print or PDF

Update: when trying to get the html from Frappe to do page breaks, it turns out these two divs prevent the page breaks in wkhtmltopdf:

<div class="row section-break">
  <div class="col-xs-12 column-break">

They surround the actual content block. When commented out, the pdf has breaks where expected (using both breaking options mentioned above). So, uncommenting the following two lines in frappe/templates/print_formats/standard.html

<!-- <div class="row section-break"> -->
(...)
   <!-- <div class="col-xs-{{ (12 / section.columns|len)|int }} column-break"> -->
   (...)  
   <!-- </div> -->
(...)  
<!-- </div> -->

has turned the pdf function to do page breaks nicely… Are these divs used for anything? Or could they be removed… (preview still works as expected)

3 Likes