Skip to content

Commit

Permalink
Improve the header of the html output.
Browse files Browse the repository at this point in the history
  • Loading branch information
dettbarn committed Nov 9, 2021
1 parent e77ea9b commit 2129b0c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rostermaker/roster.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ def export(self, prefix, fileformat, folder="."):
f.write("\\end{table}" + nl)
f.write("\\end{document}" + nl)
if fileformat == "html":
f.write("<html>" + nl)
f.write("<!DOCTYPE html>" + nl)
f.write('<html lang="en">' + nl)
f.write("<head>" + nl)
f.write("<title>" + self.getheadline() + "</title>" + nl)
f.write(" <title>" + self.getheadline() + "</title>" + nl)
f.write("</head>" + nl)
f.write("<body>" + nl)
f.write("<h1>" + self.getheadline() + "</h1>" + nl)
Expand Down

0 comments on commit 2129b0c

Please sign in to comment.