From 113a8bce3a904a91e22dcf03dafd456cb2df42f8 Mon Sep 17 00:00:00 2001 From: "Craig J. Anderson" Date: Sun, 22 Apr 2012 12:58:42 +0000 Subject: [PATCH] {} groups were simply forgotten about if they did not contain a variable that printed. This does not allow {...}<..>{...} as the separator will print depending on what is on the other side of the groups. updated the code to add a 'non printed variable' code in place of the group when it does not print. So groups are now treated like regular variables. svn: r19375 --- src/plugins/lib/libsubstkeyword.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/lib/libsubstkeyword.py b/src/plugins/lib/libsubstkeyword.py index 05fa288a9..d1eab43a6 100644 --- a/src/plugins/lib/libsubstkeyword.py +++ b/src/plugins/lib/libsubstkeyword.py @@ -662,6 +662,8 @@ class VarStringSecond(VarStringBase): def merge(self, acquisition): """ Merge the content of acquisition into this place. """ if acquisition.the_state != TXT.display: + #The sub {} was TXT.remove. We don't want to simply ignore it. + self.add_remove() #add a remove que here to note it. return if acquisition.the_state > self.the_state: