Преглед изворни кода

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

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) {
     fillText(text, x, y, font, css) {
         css = (css ? 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) {
     fillRect(x, y, w, h, color) {