}
- public static void appendHTMLFooter(StringBuffer sb) {
- sb.append("</body>\n");
- sb.append("</html>");
+ private void appendHTMLFooter(StringBuffer sb) throws IOException {
+ sb.append(new String(Files.readAllBytes(config.getHTMLFooterFile().toPath()),
+ StandardCharsets.UTF_8));
+ appendEndTag(sb, "body", 1, true);
+ appendEndTag(sb, "html", 0, false);
}
public String toHTML(SyndEntry entry) throws IOException {
buf.append("</div>\n");
- HTML.appendHTMLFooter(buf);
+ appendHTMLFooter(buf);
return buf.toString();
}