|
[HepData-svn] r1659 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formatsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgWed Nov 6 15:21:39 GMT 2013
Author: whalley Date: Wed Nov 6 15:21:39 2013 New Revision: 1659 Log: more tweaks for errors in HepML formatter 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 Wed Nov 6 15:14:51 2013 (r1658) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/HepMLFormatter.java Wed Nov 6 15:21:39 2013 (r1659) @@ -181,7 +181,7 @@ if(err.getSourceType() != null){ s.append(" source='" + err.getSourceType().toShortString() + "'"); } if(err.getNormType() != null){ s.append(" norm='" + err.getNormType().toShortName() + "'"); } s.append(" >\n"); - if(err.getComment() != null){ + if(err.getComment() != null && !err.getComment().equals("")){ s.append(" <comment>\n"); s.append(" " + err.getComment() + "\n"); s.append(" </comment>\n");
More information about the HepData-svn mailing list |