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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Nov 11 14:29:44 GMT 2013


Author: whalley
Date: Mon Nov 11 14:29:44 2013
New Revision: 1664

Log:
mods for errnorn unknown

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 Nov 11 10:01:05 2013	(r1663)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/HepMLFormatter.java	Mon Nov 11 14:29:44 2013	(r1664)
@@ -179,7 +179,8 @@
                         if(err.getPlus() != null){ s.append(" plus='" + err.getPlus() + "'"); }
                         if(err.getMinus() != null){ s.append(" minus='" + err.getMinus() + "'"); }
                         if(err.getSourceType() != null){ s.append(" source='" + err.getSourceType().toShortString() + "'"); }
-                        if(err.getNormType() != null){ s.append(" norm='" + err.getNormType().toShortName() + "'"); }
+                        if(err.getNormType().equals("?")){ s.append(" norm='unknown'"); }
+                        else if(err.getNormType() != null){ s.append(" norm='" + err.getNormType().toShortName() + "'"); }
                         s.append(" >\n");
                         if(err.getComment() != null && !err.getComment().equals("")){ 
                         s.append("               <comment>\n");


More information about the HepData-svn mailing list