diff --git a/services/web/public/coffee/ide/pdfng/directives/pdfTextLayer.coffee b/services/web/public/coffee/ide/pdfng/directives/pdfTextLayer.coffee index f863d6a2b2..2dc7bab9da 100644 --- a/services/web/public/coffee/ide/pdfng/directives/pdfTextLayer.coffee +++ b/services/web/public/coffee/ide/pdfng/directives/pdfTextLayer.coffee @@ -125,10 +125,11 @@ define [ lastFontSize = undefined lastFontFamily = undefined i = 0 - while i < textDivsLength textDiv = textDivs[i] - continue if textDiv.dataset.isWhitespace + if textDiv.dataset.isWhitespace + i++ + continue fontSize = textDiv.style.fontSize fontFamily = textDiv.style.fontFamily