From 618111ab05b5a121c6bb206428c78ca1be389363 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Wed, 20 Feb 2019 17:32:26 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=B1=D0=B0=D0=B3=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/share/BookParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/Reader/share/BookParser.js b/client/components/Reader/share/BookParser.js index d8931f37..f9d0cc95 100644 --- a/client/components/Reader/share/BookParser.js +++ b/client/components/Reader/share/BookParser.js @@ -427,7 +427,7 @@ export default class BookParser { if (i - spaceIndex >= maxWordLength && i < p.text.length - 1 && this.measureText(p.text.substr(spaceIndex + 1, i - spaceIndex), p.style) >= this.w - this.p) { result.push({style: p.style, image: p.image, text: p.text.substr(0, i + 1)}); - p = {style: p.style, text: p.text.substr(i + 1)}; + p = {style: p.style, image: p.image, text: p.text.substr(i + 1)}; spaceIndex = -1; i = -1; }