From ad28d34b7eaeee531d0b030fd1afd570613e2a16 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 14 Jun 2014 15:23:07 -0400 Subject: [PATCH] Parser - ::findAttribute removes unnecessarily lexed sub-branches. --- src/Parser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Parser.cpp b/src/Parser.cpp index 429db5d86..6094b2455 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -851,6 +851,7 @@ void Parser::findAttribute () else if (canonicalize (canonical, "pseudo", name)) { (*i)->unTag ("?"); + (*i)->removeAllBranches (); (*i)->tag ("PSEUDO"); (*i)->attribute ("name", canonical); (*i)->attribute ("raw", value); @@ -859,6 +860,7 @@ void Parser::findAttribute () else if (canonicalize (canonical, "attribute", name)) { (*i)->unTag ("?"); + (*i)->removeAllBranches (); (*i)->tag ("ATTRIBUTE"); (*i)->attribute ("name", canonical); (*i)->attribute ("raw", value);