浏览代码

Поправил бажок

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

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

@@ -83,7 +83,7 @@ export default class DrawHelper {
 
     fillText(text, x, y, font, css) {
         css = (css ? css : '');
-        return `<div style="position: absolute; left: ${x}px; top: ${y}px; font: ${font}; ${css}">${text}</div>`;
+        return `<div style="position: absolute; white-space: pre; left: ${x}px; top: ${y}px; font: ${font}; ${css}">${text}</div>`;
     }
 
     fillRect(x, y, w, h, color) {