|
[HepData-svn] r1865 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formatsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgWed Jun 10 14:02:06 BST 2015
Author: whalley Date: Wed Jun 10 14:02:06 2015 New Revision: 1865 Log: adding single quote replacement 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 Wed Jun 10 13:54:43 2015 (r1864) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/YamlFormatter.java Wed Jun 10 14:02:06 2015 (r1865) @@ -154,6 +154,7 @@ s.append("comment: | # preserve newlines\n"); boolean first=true; for (String comment : p.getComments()){ + comment=comment.replaceAll("'","''"); if(first){ s.append(s4+"'"+comment.replaceAll("\n","\n ")); first=false;
More information about the HepData-svn mailing list |