Skip to content

Commit b31a978

Browse files
Gareth Aneurin TribelloGareth Aneurin Tribello
authored andcommitted
Can now deal with special characters in whatevers in KEYWORD=whatever
1 parent dcd0f93 commit b31a978

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PlumedToHTML/PlumedFormatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def format(self, tokensource, outfile):
142142
if select not in self.keyword_dict["groups"] : raise Exception("special group " + select + " not in special group dictionary")
143143
tooltip, link = self.keyword_dict["groups"][select]["description"], self.keyword_dict["groups"][select]["link"]
144144
outfile.write('<div class="tooltip">' + inp + '<div class="right">' + tooltip + '. <a href="' + link + '">Click here</a> for more information. <i></i></div></div>')
145-
else : outfile.write( inp )
145+
else : outfile.write( html.escape(inp) )
146146
nocomma = False
147147
elif ttype==String or ttype==String.Double :
148148
# Labels of actions

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setuptools.setup(
88
name='PlumedToHTML',
9-
version='0.63',
9+
version='0.64',
1010
author="Gareth Tribello",
1111
author_email="[email protected]",
1212
description="A package for creating pretified HTML for PLUMED files",

0 commit comments

Comments
 (0)