[HepData-svn] r1562 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Jul 26 11:45:07 BST 2012


Author: whalley
Date: Thu Jul 26 11:45:07 2012
New Revision: 1562

Log:
removing the VERBATIM from the plot comment

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/ReactionPlotWords.java

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/ReactionPlotWords.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/ReactionPlotWords.java	Wed Jul 18 13:39:16 2012	(r1561)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/ReactionPlotWords.java	Thu Jul 26 11:45:07 2012	(r1562)
@@ -123,7 +123,11 @@
         for ( String comment : ya.getDataset().getComments() ){
         if(!comment.startsWith("Location:")){
         writer.element("b");
-        writer.write(comment);
+        if(comment.startsWith("VERBATIM")){
+            writer.write(comment.substring(8));
+        } else {
+            writer.write(comment);
+        }
         writer.element("br");writer.end();
         writer.end();
         }


More information about the HepData-svn mailing list