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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Aug 27 12:04:13 BST 2015


Author: watt
Date: Thu Aug 27 12:04:13 2015
New Revision: 1888

Log:
Support some more HTML tags in DisplayHtmlInsert.java

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

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DisplayHtmlInsert.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DisplayHtmlInsert.java	Wed Jul 29 17:36:22 2015	(r1887)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DisplayHtmlInsert.java	Thu Aug 27 12:04:13 2015	(r1888)
@@ -78,6 +78,18 @@
 				else if(bits[n].startsWith("a href")) { writer.element(bits[n]); }
 				else if(bits[n].equals("/a")) { writer.end(); }
 				else if(bits[n].startsWith("img")) { writer.element(bits[n]);  writer.end(); }
+				else if(bits[n].equals("sub")) { writer.element("sub"); } 
+				else if(bits[n].equals("/sub")) { writer.end(); }
+				else if(bits[n].equals("sup")) { writer.element("sup"); } 
+				else if(bits[n].equals("/sup")) { writer.end(); }
+				else if(bits[n].equals("pre")) { writer.element("pre"); } 
+				else if(bits[n].equals("/pre")) { writer.end(); }
+				else if(bits[n].equals("i")) { writer.element("i"); } 
+				else if(bits[n].equals("/i")) { writer.end(); }
+				else if(bits[n].equals("h3")) { writer.element("h3"); } 
+				else if(bits[n].equals("/h3")) { writer.end(); }
+				else if(bits[n].equals("tbody")) { writer.element("tbody"); } 
+				else if(bits[n].equals("/tbody")) { writer.end(); }
 				else{ writer.write(bits[n]);}
 			    }
 			} 


More information about the HepData-svn mailing list