[HepData-svn] r1729 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Jan 7 15:43:15 GMT 2014


Author: whalley
Date: Tue Jan  7 15:43:14 2014
New Revision: 1729

Log:
filtering gt and lt signs in hepml

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/HepMLFormatter.java

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/HepMLFormatter.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/HepMLFormatter.java	Mon Jan  6 13:50:40 2014	(r1728)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/HepMLFormatter.java	Tue Jan  7 15:43:14 2014	(r1729)
@@ -127,7 +127,9 @@
                     if(bn.getHighValueLength() != null){ s.append(" highlength='" + bn.getHighValueLength() + "'"); }
                     if(bn.getWidth() != null){ s.append(" width='" + bn.getWidth() + "'"); }
                     if(bn.getRelation() != null){ s.append(" relation='" + bn.getRelation().toShortName() + "'"); }
-                    if(bn.getDescription() != null){ s.append(" description='" + bn.getDescription() + "'"); }
+                    if(bn.getDescription() != null){
+                      s.append(" description='" + bn.getDescription().replaceAll(">",">").replaceAll("<","<") + "'");
+                    }
                     s.append(" />\n");
                 }
                 s.append("          </bins>\n");    


More information about the HepData-svn mailing list