|
[HepData-svn] r1315 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/componentsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgTue Nov 17 08:52:14 GMT 2009
Author: whalley Date: Tue Nov 17 08:52:14 2009 New Revision: 1315 Log: adding no data encoded comment 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 Nov 13 13:40:07 2009 (r1314) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java Tue Nov 17 08:52:14 2009 (r1315) @@ -182,7 +182,14 @@ writer.end(); //tr - if (getFormat().equals("full")) { + if(_dataset.getNumPoints() == 0){ + writer.element("th"); + writer.attributes("colspan",ny+nx); + writer.attributes("align", "center"); + writer.write("No data is encoded for this table"); + writer.end(); + } + if (getFormat().equals("full") && _dataset.getNumPoints() != 0) { // Finally the numbers themselves for (int ip = 1 ; ip <= npoints; ip++) {
More information about the HepData-svn mailing list |