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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Oct 25 10:37:42 BST 2012


Author: whalley
Date: Thu Oct 25 10:37:41 2012
New Revision: 1592

Log:
removal of number limits on elements in bdms format

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

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java	Tue Oct 23 13:56:31 2012	(r1591)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java	Thu Oct 25 10:37:41 2012	(r1592)
@@ -21,27 +21,27 @@
 
         if(p.getTitle()!=null) s.append("TITLE = " + p.getTitle() + ";\n");
 
-        for (int n=1; n<4; n++){
+        for (int n=1; ; n++){
 	        if(p.getReferenceString(n) != null){ s.append(p.getReferenceString(n) + "\n"); }
 	        else{ break; }	
         }
 
-        for (int n=1; n<4; n++){
+        for (int n=1; ; n++){
 	        if(p.getModificationString(n) != null){ s.append(p.getModificationString(n) + "\n"); }
 	        else{ break; }	
         }
 
-        for (int n=1; n<10; n++){
+        for (int n=1; ; n++){
 	        if(p.getCommentString(n) != null){ s.append(p.getCommentString(n) + "\n"); }
 	        else{ break; }	
         }
 
-        for (int n=1; n<4; n++){
+        for (int n=1; ; n++){
 	        if(p.getExperimentString(n) != null){ s.append(p.getExperimentString(n) + "\n"); }
 	        else{ break; }	
         }
 
-        for (int n=1; n<4; n++){
+        for (int n=1; ; n++){
 	        if(p.getDetectorString(n) != null){ s.append(p.getDetectorString(n) + "\n"); }
 	        else{ break; }	
         }


More information about the HepData-svn mailing list