[HepData-svn] r1581 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Oct 11 14:50:45 BST 2012


Author: whalley
Date: Thu Oct 11 14:50:45 2012
New Revision: 1581

Log:
forcing the . : type comments to the end of the output list to be nearer the y header

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	Thu Oct 11 10:45:23 2012	(r1580)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java	Thu Oct 11 14:50:45 2012	(r1581)
@@ -159,7 +159,7 @@
                     }
                 }
                 if(comment.startsWith(". :")){
-                        comment = comment.substring(3);
+                        comment = comment.replace(". :","zzzz :");
                  }
                 if(!comment.startsWith("Axis error")){ 
                   storelist.add(comment);
@@ -203,6 +203,7 @@
                 else{
                     ij += 1;
                     store[numy][ij] = storelist.get(i).replaceFirst("sqrts","SQRT(S)");
+                    store[numy][ij] = storelist.get(i).replaceFirst("zzzz :","");
                 } 
             }
         }
@@ -244,7 +245,7 @@
                             if(nmy>0){ writer.write( store[nmy][i].substring(ii+1)); }
                             else { writer.write( store[nmy][i]); }
                         }
-                        `writer.end();
+                        writer.end();
                     }
                 }
                 writer.end();  //tr    


More information about the HepData-svn mailing list