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

View File

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