Skip to content

Commit

Permalink
Fixed width input parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Xre0uS committed Sep 7, 2023
1 parent 43f2a7b commit 3b775d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function parseWidthInput(input) {

let result = [];

if (tableWidthOption === "custom") {
if (converterMode == "spaceSmart" || converterMode == "advanced") {
const firstNum = parseInt(input.split(',')[0]);
if (firstNum < MAX_LIMIT) {
smartWidth = Array.from({ length: firstNum }, (_, i) => i + 1);
Expand Down Expand Up @@ -185,6 +185,7 @@ function parseWidthInput(input) {

function convertTables() {
if (widthOptionsDropdown.value == "custom" && !customWidth) {
return;
}
else {
if (converterMode == "html") {
Expand Down

0 comments on commit 3b775d7

Please sign in to comment.