Skip to content

Commit bdcaaa4

Browse files
committed
removed duplicate code
1 parent 1cb6e7e commit bdcaaa4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

jspdf.plugin.from_html.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,14 +1084,12 @@
10841084
}
10851085
//if we have to move the cursor to adapt the indent
10861086
var indentMove = 0;
1087+
var indentMore = 0;
10871088
//if a margin was added (by e.g. a text-alignment), move the cursor
10881089
if (line[0][1]["margin-left"] !== undefined && line[0][1]["margin-left"] > 0) {
10891090
wantedIndent = this.pdf.internal.getCoordinateString(line[0][1]["margin-left"]);
10901091
indentMove = wantedIndent - currentIndent;
10911092
currentIndent = wantedIndent;
1092-
}else{
1093-
//TODO might need to be += and outside of else block
1094-
indentMove = (Math.max(blockstyle["margin-left"] || 0, 0)) * fontToUnitRatio;
10951093
}
10961094
var indentMore = (Math.max(blockstyle["margin-left"] || 0, 0)) * fontToUnitRatio;
10971095
//move the cursor

0 commit comments

Comments
 (0)