浏览代码

К предыдущему

Book Pauk 6 年之前
父节点
当前提交
e99a42b7af
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/components/Reader/TextPage/DrawHelper.js

+ 1 - 1
client/components/Reader/TextPage/DrawHelper.js

@@ -91,7 +91,7 @@ export default class DrawHelper {
                 } else
                     text = part.text;
 
-                if (text.trim() == '')
+                if (text && text.trim() == '')
                     text = `<span style="white-space: pre">${text}</span>`;
 
                 lineText += `${tOpen}${text}${tClose}`;