parseContent comment.
This commit is contained in:
parent
28bd6ba3e4
commit
0aafeb2530
|
@ -1494,6 +1494,13 @@ Element.prototype.parseContent = function() {
|
||||||
|| this._clines.width !== width
|
|| this._clines.width !== width
|
||||||
|| this._clines.content !== this.content) {
|
|| this._clines.content !== this.content) {
|
||||||
var content = this.content;
|
var content = this.content;
|
||||||
|
// Possibly keep this for set/get/insert/etcLine
|
||||||
|
// Although, it may not work since the lines handled
|
||||||
|
// by those methods need to be wrapped. If the line
|
||||||
|
// indexes were only within the context of the box
|
||||||
|
// (e.g. line 0 is always the top of the box) like they
|
||||||
|
// were before, this may be feasible.
|
||||||
|
// this._oclines = content.split('\n');
|
||||||
// Could move these 2 lines back to setContent (?)
|
// Could move these 2 lines back to setContent (?)
|
||||||
content = content.replace(/\x1b(?!\[[\d;]*m)/g, '');
|
content = content.replace(/\x1b(?!\[[\d;]*m)/g, '');
|
||||||
content = this._parseTags(content || '');
|
content = this._parseTags(content || '');
|
||||||
|
|
Loading…
Reference in New Issue