Commit a6199f9d authored by 李维's avatar 李维

修改换行对齐

parent bb42d033
......@@ -12,7 +12,7 @@ var DISPLAY_MODE = cc.Enum({
// wordRegex = /(?<=\s|^|\b)(?:[-'",.?;:@%$#&\/]\b|\b[-'",.?;:@%$#&\/]|[A-Za-z0-9]|\([A-Za-z0-9]+\))+(?=\s|$|\b)|(?:[\u4E00-\u9FFF])
const LINE_BEAKER = '<br/>'; // '\n'
const SPACE = ' ';
const SPACE = '';
class MyAudioSource {
play(){
......@@ -758,7 +758,7 @@ cc.Class({
if (played.startsWith(LINE_BEAKER)) {
played = played.substr(LINE_BEAKER.length);
}
const textForCalc = `${played}${this._playedContent.length ? " ": ''}${playing}${this._playingContent.length ? " ": ''}`
const textForCalc = `${played}${this._playedContent.length ? "": ''}${playing}${this._playingContent.length ? "": ''}`
// const textForCalc = `${played}${playing}`
this.calcHighlightRichText.string = textForCalc;
this.richText.string = `${textForCalc}${remained}`;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment