diff --git a/html/index.js b/html/index.js
index 33560b6..b9a3087 100644
--- a/html/index.js
+++ b/html/index.js
@@ -366,7 +366,10 @@ async function printResult() {
break;
}
- if (document.getElementById('selReport').value === 'ballots_votes' && endCol + 1 < modelRow.length) {
+ if (
+ (document.getElementById('selReport').value === 'ballots_votes' && endCol + 1 < modelRow.length) ||
+ (document.getElementById('selReport').value === 'votes_transposed' && endCol != 1 && endCol + 1 < modelRow.length)
+ ) {
// Check second column
if (totalWidth + modelRow[endCol].clientWidth + modelRow[endCol + 1].clientWidth > printableWidth) {
break;
@@ -377,7 +380,10 @@ async function printResult() {
totalWidth += modelRow[endCol].clientWidth;
endCol++;
- if (document.getElementById('selReport').value === 'ballots_votes' && endCol < modelRow.length) {
+ if (
+ (document.getElementById('selReport').value === 'ballots_votes' && endCol < modelRow.length) ||
+ (document.getElementById('selReport').value === 'votes_transposed' && endCol != 2 && endCol + 1 < modelRow.length)
+ ) {
// Second column
totalWidth += modelRow[endCol].clientWidth;
endCol++;