comments for wrapContent.

This commit is contained in:
Christopher Jeffrey 2013-07-16 01:42:21 -05:00
parent edc216fa37
commit c5d47187cf

View File

@ -4107,6 +4107,18 @@ function wrapContent(content, width, tags, state) {
, cap;
if (tags) {
//if (cap = /^(\x1b\[[\d;]*m)*^{(left|center|right)}/.exec(line)) {
// line = (cap[1] || '') + line.substring(cap[0].length);
// align = state = cap[2] !== 'left'
// ? cap[2]
// : null;
//}
//if (cap = /{\/(left|center|right)}(\x1b\[[\d;]*m)*$/.exec(line)) {
// line = line.slice(0, -cap[0].length) + (cap[2] || '');
// state = null;
//}
if (cap = /^{(left|center|right)}/.exec(line)) {
line = line.substring(cap[0].length);
align = state = cap[1] !== 'left'