From daf4a38429e7e0fb893ef6ebb9a5af348415a7f5 Mon Sep 17 00:00:00 2001 From: kopeyev Date: Thu, 4 Apr 2019 12:32:09 +0300 Subject: [PATCH] PR for issue #60 If the number of columns in the first row is not equal to the number of others, it is not converted correctly, in short, it converts only the number of columns in each row that the first row contains. SOLVED. In muk_web_preview_msoffice/static/src/js/preview_handler.js after line 119 ("""$pane.attr('id', 'sheet-' + index);""") add following: """var maximum_arrs = 1; sheet.forEach(function (arr) { if(arr.length>maximum_arrs){ maximum_arrs = arr.length; } }); sheet.forEach(function (arr) { if(arr.length'); $pane.addClass('tab-pane table-container'); $pane.attr('id', 'sheet-' + index); + var maximum_arrs = 1; + sheet.forEach(function (arr) { + if(arr.length>maximum_arrs){ + maximum_arrs = arr.length; + } + }); + sheet.forEach(function (arr) { + if(arr.length