add <code> when rendering turtle to HTML

This commit is contained in:
Grahame Grieve 2020-09-25 03:26:48 +10:00
parent 73d5a845bf
commit dfaefde01a
1 changed files with 2 additions and 2 deletions

View File

@ -384,12 +384,12 @@ public class Turtle {
public String asHtml() throws Exception {
StringBuilder b = new StringBuilder();
b.append("<pre class=\"rdf\">\r\n");
b.append("<pre class=\"rdf\"><code class=\"language-turtle\">\r\n");
commitPrefixes(b);
for (Section s : sections) {
commitSection(b, s);
}
b.append("</pre>\r\n");
b.append("</code></pre>\r\n");
b.append("\r\n");
return b.toString();
}