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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Jun 22 19:35:46 BST 2010


Author: buckley
Date: Tue Jun 22 19:35:55 2010
New Revision: 1365

Log:
Better spacing in mpl format

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

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/MatplotlibFormatter.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/MatplotlibFormatter.java	Tue Jun 22 18:30:24 2010	(r1364)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/MatplotlibFormatter.java	Tue Jun 22 19:35:55 2010	(r1365)
@@ -112,13 +112,14 @@
                         s.append("plt.errorbar(xval, yval, xerr=[xerrminus, xerrplus], yerrminus, yerrplus)\n");
                         s.append("plt.suptitle(\"" + path.toString() + "\")\n");
                         s.append("plt.savefig(" + fullname.toString() + ".pdf)\n");
+                        s.append("\n");
 
                     }
                 }
                 out = s.toString();
             }
         } catch (NullPointerException npe) {
-            out = "# Can't render this dataset, due to missing/incompatible information: please report this problem!\n";
+            out = "# Can't render this dataset, due to missing/incompatible information: please report this problem!\n\n";
         }
         return out;
     }

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/YodaFormatter.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/YodaFormatter.java	Tue Jun 22 18:30:24 2010	(r1364)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/YodaFormatter.java	Tue Jun 22 19:35:55 2010	(r1365)
@@ -65,7 +65,7 @@
                 asYODA = s.toString();
             }
         } catch (NullPointerException npe) {
-            asYODA = "# Can't render this dataset, due to missing/incompatible information: please report this problem!\n";
+            asYODA = "# Can't render this dataset, due to missing/incompatible information: please report this problem!\n\n";
         }
 
         return asYODA;


More information about the HepData-svn mailing list