We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45b5f8e commit 4e6bcb4Copy full SHA for 4e6bcb4
jspdf.plugin.from_html.js
@@ -862,9 +862,16 @@
862
var localFragments = [];
863
var localStyles = [];
864
//create fragement array of
865
- lines.forEach(function(line) {
866
- localFragments.push(line[0][0]+" ");
867
- localStyles.push(line[0][1]);
+ lines.forEach(function(localLine) {
+ var i = 0;
+ var l = localLine.length;
868
+ while (i !== l) {
869
+ if (localLine[i][0]) {
870
+ localFragments.push(localLine[i][0]+' ');
871
+ localStyles.push(localLine[i][1]);
872
+ }
873
+ ++i;
874
875
});
876
//split lines again due to possible coordinate changes
877
lines = this.splitFragmentsIntoLines(PurgeWhiteSpace(localFragments), localStyles);
0 commit comments