From b31a978749d04e595adb278317d307c4556911af Mon Sep 17 00:00:00 2001 From: Gareth Aneurin Tribello Date: Sat, 11 May 2024 08:10:15 +0100 Subject: [PATCH] Can now deal with special characters in whatevers in KEYWORD=whatever --- PlumedToHTML/PlumedFormatter.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PlumedToHTML/PlumedFormatter.py b/PlumedToHTML/PlumedFormatter.py index 82a3c46..940ea62 100644 --- a/PlumedToHTML/PlumedFormatter.py +++ b/PlumedToHTML/PlumedFormatter.py @@ -142,7 +142,7 @@ def format(self, tokensource, outfile): if select not in self.keyword_dict["groups"] : raise Exception("special group " + select + " not in special group dictionary") tooltip, link = self.keyword_dict["groups"][select]["description"], self.keyword_dict["groups"][select]["link"] outfile.write('
' + inp + '
' + tooltip + '. Click here for more information.
') - else : outfile.write( inp ) + else : outfile.write( html.escape(inp) ) nocomma = False elif ttype==String or ttype==String.Double : # Labels of actions diff --git a/setup.py b/setup.py index 33232ad..37af62e 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setuptools.setup( name='PlumedToHTML', - version='0.63', + version='0.64', author="Gareth Tribello", author_email="gareth.tribello@gmail.com", description="A package for creating pretified HTML for PLUMED files",