fixed a typo in generated smptett
Added smptett support for teletext input
Fixed line break in output for teletext input
Fixed a rare bug with some teletext input

In rare cases, the output had the last line written after the footer (i.e. for
smptett the last </div></tt> was after the last <p>).
Added default style to smptett header