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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Oct 22 16:15:58 BST 2012


Author: whalley
Date: Mon Oct 22 16:15:58 2012
New Revision: 1586

Log:
remove uppercase for units

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	Mon Oct 15 15:02:31 2012	(r1585)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java	Mon Oct 22 16:15:58 2012	(r1586)
@@ -92,7 +92,7 @@
                     if(prop.getName().startsWith("sqrts")){ nyprop--; }
                 }
                 for (Property prop : ds.getProperties()){
-                    s.append("N = " + prop.getName() + " IN " + prop.getUnit().toString().toUpperCase());
+                    s.append("N = " + prop.getName() + " IN " + prop.getUnit().toString());
                     if(prop.getLowValue().equals(prop.getHighValue())){
                         s.append("; V = " + prop.getLowValue() +  ";\n");
                     } else{
@@ -129,7 +129,7 @@
                         if(!prop.getName().startsWith("sqrts")){
                      	    StringBuffer tempbuff = new StringBuffer();
                             tempbuff.append("N = " + prop.getName().trim());
-                            if(!prop.getUnit().toString().equals("num")) { tempbuff.append(" IN " + prop.getUnit().toString().toUpperCase()); } 
+                            if(!prop.getUnit().toString().equals("num")) { tempbuff.append(" IN " + prop.getUnit().toString()); } 
                             if(prop.getLowValue().equals(prop.getHighValue())){
                                 tempbuff.append("; V = " + prop.getLowValue() + ";\n");
                             } else{


More information about the HepData-svn mailing list