diff --git a/script-universal_function.js b/script-universal_function.js index f0d9f022..a3336f17 100644 --- a/script-universal_function.js +++ b/script-universal_function.js @@ -525,7 +525,7 @@ function cardN(id){ function descriptionToHTML(str) { str = str.replace(/\n/ig,"
"); //换行 - str = str.replace(/ /ig," "); //换行 + //str = str.replace(/ /ig," "); //换行 str = str.replace(/\^([a-fA-F0-9]+?)\^([^\^]+?)\^p/igm,'$2'); //文字颜色 str = str.replace(/\%\{m([0-9]{1,4})\}/g,function (str, p1, offset, s){return cardN(parseInt(p1,10)).outerHTML;}); //怪物头像 return str; diff --git a/style.css b/style.css index 83da16f2..0a6612c4 100644 --- a/style.css +++ b/style.css @@ -79,6 +79,7 @@ body{ box-sizing: border-box; padding: 1px; margin: 0; + white-space: pre-wrap; } .guide-mod .control-box>div.status