|
[HepData-svn] r1560 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/componentsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgWed Jul 18 10:41:52 BST 2012
Author: whalley Date: Wed Jul 18 10:41:52 2012 New Revision: 1560 Log: fix to output the property name only once per line Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java ============================================================================== --- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java Fri Jul 6 15:16:11 2012 (r1559) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java Wed Jul 18 10:41:52 2012 (r1560) @@ -233,10 +233,13 @@ writer.write(store[0][i]); writer.end(); } else { + int ii=0; + if(store[0][i].indexOf(":")>0) { ii = store[0][i].indexOf(":"); } for (int nmy=0; nmy<ny; nmy++){ writer.element("th"); writer.attributes("class","multiple qualifier_class"); - writer.write( store[nmy][i]); + if(nmy>0){ writer.write( store[nmy][i].substring(ii+1)); } + else { writer.write( store[nmy][i]); } writer.end(); } }
More information about the HepData-svn mailing list |