fix plain <-> html, prettify output