|
[Rivet-svn] r2712 - trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Oct 14 13:33:26 BST 2010
Author: hoeth Date: Thu Oct 14 13:33:26 2010 New Revision: 2712 Log: fix XML quoting in axis labels Modified: trunk/bin/rivet-rmgaps Modified: trunk/bin/rivet-rmgaps ============================================================================== --- trunk/bin/rivet-rmgaps Thu Oct 14 13:22:30 2010 (r2711) +++ trunk/bin/rivet-rmgaps Thu Oct 14 13:33:26 2010 (r2712) @@ -91,8 +91,8 @@ f.write(' <item key="AidaPath" value="%s" sticky="true"/>\n' % path) f.write(' <item key="FullPath" value="/%s.aida%s" sticky="true"/>\n' % (filename.split('/')[-1], path)) f.write(' </annotation>\n') - f.write(' <dimension dim="0" title="%s" />\n' % xlabel) - f.write(' <dimension dim="1" title="%s" />\n' % ylabel) + f.write(' <dimension dim="0" title="%s" />\n' % xlabel.replace('>', '>').replace('<', '<').replace('"', '"')) + f.write(' <dimension dim="1" title="%s" />\n' % ylabel.replace('>', '>').replace('<', '<').replace('"', '"')) def write_datapointset_footer(self, f): f.write(' </dataPointSet>\n')
More information about the Rivet-svn mailing list |