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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Jul 23 18:07:40 BST 2015


Author: watt
Date: Thu Jul 23 18:07:40 2015
New Revision: 1885

Log:
Changes to YAML formatter: added single-quote marks around y description

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

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/YamlFormatter.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/YamlFormatter.java	Thu Jul 23 18:01:04 2015	(r1884)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/YamlFormatter.java	Thu Jul 23 18:07:40 2015	(r1885)
@@ -493,7 +493,7 @@
                     }
 		    //                    s.append(point.getValue()+" "+point.getValueLength()+"\n");
 		    if (point.getDescription() != null) {
-			s.append(point.getDescription()+"\n");
+			s.append("'"+point.getDescription()+"'\n");
 		    } else {
 			s.append(point.getValue()+"\n");
 		    }


More information about the HepData-svn mailing list