Skip to content
Browse files

problem of lost lines solved

  • Loading branch information...
1 parent 45b5f8e commit 4e6bcb4fa81751e36dd199ca38d52391df78c326 @woolfg woolfg committed Jun 5, 2014
Showing with 10 additions and 3 deletions.
  1. +10 −3 jspdf.plugin.from_html.js
View
13 jspdf.plugin.from_html.js
@@ -862,9 +862,16 @@
var localFragments = [];
var localStyles = [];
//create fragement array of
- lines.forEach(function(line) {
- localFragments.push(line[0][0]+" ");
- localStyles.push(line[0][1]);
+ lines.forEach(function(localLine) {
+ var i = 0;
+ var l = localLine.length;
+ while (i !== l) {
+ if (localLine[i][0]) {
+ localFragments.push(localLine[i][0]+' ');
+ localStyles.push(localLine[i][1]);
+ }
+ ++i;
+ }
});
//split lines again due to possible coordinate changes
lines = this.splitFragmentsIntoLines(PurgeWhiteSpace(localFragments), localStyles);

0 comments on commit 4e6bcb4

Please sign in to comment.
Something went wrong with that request. Please try again.