[HepData-svn] r1553 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Wed Jun 27 14:34:12 BST 2012


Author: whalley
Date: Wed Jun 27 14:34:12 2012
New Revision: 1553

Log:
fix problems with multi-ple yheaders

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/InputFormatter.java

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/InputFormatter.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/InputFormatter.java	Tue Jun 26 16:20:08 2012	(r1552)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/InputFormatter.java	Wed Jun 27 14:34:12 2012	(r1553)
@@ -97,7 +97,6 @@
                     } 
                     s.append("\n");
                 } 
-                
                 String[][] store = new String[nyax][nycomm+nyprop+1];
                 int nyhead=0;
                 for (int n=0; n<nyax; n++){
@@ -154,7 +153,8 @@
                     else{
                         s.append(store[0][i]);
                         for(int ny=1; ny<nyax; ny++){
-                           String right = store[ny][i].split("\\s\\:\\s")[1];
+                           String right = store[ny][i].split("\\s*\\:\\s")[1];
+//                           String right = store[ny][i];
                             s.append(" : "+right);
                         }
                         s.append("\n");


More information about the HepData-svn mailing list