parseContent comment.

This commit is contained in:
Christopher Jeffrey 2013-07-16 03:50:42 -05:00
parent 28bd6ba3e4
commit 0aafeb2530
1 changed files with 7 additions and 0 deletions

View File

@ -1494,6 +1494,13 @@ Element.prototype.parseContent = function() {
|| this._clines.width !== width
|| this._clines.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 (?)
content = content.replace(/\x1b(?!\[[\d;]*m)/g, '');
content = this._parseTags(content || '');