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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Wed Jul 1 18:26:51 BST 2015


Author: watt
Date: Wed Jul  1 18:26:51 2015
New Revision: 1879

Log:
Copy name to data tables in YAML formatter

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	Tue Jun 30 16:45:40 2015	(r1878)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/YamlFormatter.java	Wed Jul  1 18:26:51 2015	(r1879)
@@ -38,8 +38,7 @@
             s.append("additional_resources:\n");
         }
         for (Dataset ds : p.getDatasets()){
-            s.append("\n---\n"); 
-            s.append("# This is Data "+ds.getId()+"\n");
+            s.append("\n---\n");
             s.append(_dataYAML(ds));  // dataset information in _data
         }
  
@@ -282,6 +281,7 @@
         String location = "";
         Paper p = ds.getPaper();
        
+	s.append("name: 'Table "+ds.getId()+"'\n");
         s.append("independent_variables:\n");
         for (XAxis xax : ds.getXAxes()){
             String name=xax.getHeader();


More information about the HepData-svn mailing list