mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-02-02 22:24:55 +00:00
comments for wrapContent.
This commit is contained in:
parent
edc216fa37
commit
c5d47187cf
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user