Explorar o código

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

Book Pauk %!s(int64=6) %!d(string=hai) anos
pai
achega
e99a42b7af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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}`;