diff --git a/lib/parser.js b/lib/parser.js index 7ba6dcdc8..7ce57f17f 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -378,7 +378,7 @@ Parser.prototype = { else tag.text = new nodes.Text('\\n'); } - tag.textOnly = ~textOnly.indexOf(name); + tag.textOnly = ~textOnly.indexOf(tag.name); // block? if ('indent' == this.peek.type) {