|
[HepData-svn] r1898 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formatsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgMon Oct 5 20:34:25 BST 2015
Author: watt Date: Mon Oct 5 20:34:25 2015 New Revision: 1898 Log: Fix a bracket in the YAML formatter Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/YamlFormatter.java Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/YamlFormatter.java ============================================================================== --- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/YamlFormatter.java Mon Oct 5 18:30:53 2015 (r1897) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/YamlFormatter.java Mon Oct 5 20:34:25 2015 (r1898) @@ -426,9 +426,11 @@ name=yax.getHeader().substring(0,yax.getHeader().indexOf(" IN ")).trim(); unit=yax.getHeader().substring(yax.getHeader().indexOf(" IN ")+4).trim(); } - if (npoints > 0) { s.append(sp+"header: {name: '"+name.replaceAll("'","''")+"'"); } - if(!unit.equals("")){ s.append(", units: '"+unit+"'"); } - s.append("}\n"); + if (npoints > 0) { + s.append(sp+"header: {name: '"+name.replaceAll("'","''")+"'"); + if(!unit.equals("")){ s.append(", units: '"+unit+"'"); } + s.append("}\n"); + } boolean first=true; for (Property prop : yax.getProperties()){ if(first) { s.append(s4+"qualifiers:\n"); }
More information about the HepData-svn mailing list |