diff --git a/PlumedToHTML/PlumedFormatter.py b/PlumedToHTML/PlumedFormatter.py index bbc1e17..4f45a72 100644 --- a/PlumedToHTML/PlumedFormatter.py +++ b/PlumedToHTML/PlumedFormatter.py @@ -215,6 +215,7 @@ def format(self, tokensource, outfile): else : desc, mykey = "", value.strip().upper() if action not in self.keyword_dict : raise Exception("action " + action + " not present in keyword dictionary") + if mykey not in self.keyword_dict[action]["syntax"] and value.strip() in self.keyword_dict[action]["syntax"] : mykey = value.strip() if mykey in self.keyword_dict[action]["syntax"] : desc = self.keyword_dict[action]["syntax"][mykey]["description"].split('.')[0] else : # This deals with numbered keywords diff --git a/setup.py b/setup.py index a1a7ad6..1f08be7 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setuptools.setup( name='PlumedToHTML', - version='0.92', + version='0.93', author="Gareth Tribello", author_email="gareth.tribello@gmail.com", description="A package for creating pretified HTML for PLUMED files", diff --git a/tdata/tests.json b/tdata/tests.json index 3127eee..7be223e 100644 --- a/tdata/tests.json +++ b/tdata/tests.json @@ -150,6 +150,13 @@ "actions": ["MOLINFO"], "tooltips": ["MOLINFO", "STRUCTURE"], "badges": ["pass"] + }, + { + "input": "b: DEBUG logRequestedAtoms STRIDE=2", + "index": 23, + "actions": ["DEBUG"], + "tooltips": ["DEBUG", "logRequestedAtoms", "STRIDE"], + "badges": ["pass"] } ] }