+ if (isChrome) {
+ // Chrome doesn't respect page-break-* styles on table rows/cells,
+ // so wrap the contents of table cells with a block element
+ // ref. Chromium bug #99124, #87828, #59193
+ // should be fixed with Chrome 53
+ var nosplits = $('.nosplitrows td');
+ if (nosplits.length > 0) {
+ nosplits.wrapInner('<div class="nosplit autowrap" />');
+ }
+ }