Merge pull request #1300 from anandpdoshi/wkhtmltopdf-overlap-fix

avoid overlapping text and breaking row text in wkhtmltopdf output
This commit is contained in:
Anand Doshi 2015-09-08 15:00:32 +05:30
commit dbec6ac9bd
2 changed files with 13 additions and 1 deletions

View file

@ -37,7 +37,7 @@
<td>{{ d.idx }}</td>
{% for tdf in visible_columns %}
<td class="{{ get_align_class(tdf.fieldtype) }}">
{{ print_value(tdf, d, doc) }}</td>
<div>{{ print_value(tdf, d, doc) }}</div></td>
{% endfor %}
</tr>
{% endfor %}

View file

@ -85,3 +85,15 @@ table.no-border, table.no-border td {
.print-format p {
margin: 3px 0px 3px;
}
table td div {
/* needed to avoid partial cutting of text between page break in wkhtmltopdf */
page-break-inside: avoid !important;
}
/* hack for webkit specific browser */
@media (-webkit-min-device-pixel-ratio:0) {
thead, tfoot { display: table-row-group; }
}