Commits

Egon Willighagen  committed 8782cf3

Fixed mixed HTML in roles.html

  • Participants
  • Parent commits bb2f90b

Comments (0)

Files changed (3)

File src/main/java/uk/ac/cam/ch/wwmm/oscar/bjoc/io/RecoveredChemistryOutputStream.java

 	}
 
 	public void close() throws IOException {
+		close("");
+	}
+
+	public void close(String randomHTMLContent) throws IOException {
+		out.println(randomHTMLContent);
 		out.println("  <script type=\"text/javascript\" id=\"js\">"
 				+ "   $(document).ready(function() {"
 				+ "	// call the tablesorter plugin");

File src/main/java/uk/ac/cam/ch/wwmm/oscar/bjoc/io/RolesOutputStream.java

 	}
 
 	public void close() throws IOException {
+		close("");
+	}
+
+	public void close(String randomHTMLContent) throws IOException {
 		out.println("</tbody>");
 		out.println("</table>");
+		out.println(randomHTMLContent);
 		out.println("  <script type=\"text/javascript\" id=\"js\">"
 				+ "   $(document).ready(function() {"
 				+ "	// call the tablesorter plugin");

File src/test/java/uk/ac/cam/ch/wwmm/oscar/bjoc/AnalyzeSomeBJOCPapersTest.java

 			"        src=\"http://www.w3.org/Icons/valid-xhtml-rdfa\"" +
 			"        alt=\"Valid XHTML + RDFa\" height=\"31\" width=\"88\" /></a>" +
 			"  </p>";
-		out.write(validButton);
-		roles.write(validButton.replace("bjoc.html", "roles.html"));
-		roles.close();
-		out.close();
+		roles.close(validButton.replace("bjoc.html", "roles.html"));
+		out.close(validButton);
 	}
 	
 }