diff --git a/src/Parser.cpp b/src/Parser.cpp index d3738eb37..8538b98b5 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -753,6 +753,7 @@ void Parser::findSubstitution () !Directory (raw).exists ()) { (*i)->unTag ("?"); + (*i)->removeAllBranches (); (*i)->tag ("SUBSTITUTION"); (*i)->attribute ("from", from); (*i)->attribute ("to", to);