|
[HepData-svn] r1874 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formatsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgFri Jun 19 17:40:55 BST 2015
Author: watt Date: Fri Jun 19 17:40:55 2015 New Revision: 1874 Log: Remove some quote marks in case they occur in resource file descriptions 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 Fri Jun 19 17:18:54 2015 (r1873) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/YamlFormatter.java Fri Jun 19 17:40:55 2015 (r1874) @@ -99,10 +99,10 @@ if(p.getReferences().size()>0){ for (Reference r : p.getReferences()){ if(r.getDescription().startsWith("http")){ - s.append(sp+"{location: '"+r.getDescription()+"', description: \"experiment TWiki page for analysis\"}\n"); + s.append(sp+"{location: '"+r.getDescription()+"', description: experiment TWiki page for analysis}\n"); } } - if (p.getHaveRivet()) { s.append(sp+"{location: 'http://rivet.hepforge.org/analyses#"+p.getRivetName()+"', description: \"Rivet analysis\"}\n"); } + if (p.getHaveRivet()) { s.append(sp+"{location: 'http://rivet.hepforge.org/analyses#"+p.getRivetName()+"', description: Rivet analysis}\n"); } } // here we deal with the extra resource are description/line files @@ -133,7 +133,7 @@ link="http://hepdata.cedar.ac.uk"+in.readLine(); } catch (IOException e){} - s.append(sp+"{location: '"+link+"', description: '"+desc+"'}\n"); + s.append(sp+"{location: '"+link+"', description: "+desc+"}\n"); } } } @@ -144,7 +144,7 @@ File testinsert = new File(insertfile); String insert=""; if(testinsert.exists()){ - s.append(sp+"{location: 'http://hepdata.cedar.ac.uk/resource/"+ids[j]+"/insert.html', description: \"insert.html\"}\n"); + s.append(sp+"{location: 'http://hepdata.cedar.ac.uk/resource/"+ids[j]+"/insert.html', description: insert.html}\n"); } }
More information about the HepData-svn mailing list |