mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-10 19:16:20 +00:00
escaping curly braces in tags. see #51.
This commit is contained in:
parent
9814f832fb
commit
7bfd309e1a
@ -2033,6 +2033,22 @@ Element.prototype._parseTags = function(text) {
|
||||
slash = cap[1] === '/';
|
||||
param = cap[2].replace(/-/g, ' ');
|
||||
|
||||
// if (!slash && param === 'curly') {
|
||||
// out += '{';
|
||||
// continue;
|
||||
// } else if ((slash && param === 'curly') || param === '!curly') {
|
||||
// out += '}';
|
||||
// continue;
|
||||
// }
|
||||
|
||||
if (param === 'open') {
|
||||
out += '{';
|
||||
continue;
|
||||
} else if (param === 'close') {
|
||||
out += '}';
|
||||
continue;
|
||||
}
|
||||
|
||||
if (param.slice(-3) === ' bg') state = bg;
|
||||
else if (param.slice(-3) === ' fg') state = fg;
|
||||
else state = flag;
|
||||
|
Loading…
x
Reference in New Issue
Block a user