I'm using yattag
to generate HTML:
doc, tag, text = Doc().tagtext()
with tag("p"):
text("My paragraph.")
While it works well enough, when I look at the HTML source it comes out all on one line. Is there some kind of switch or other trick that makes yattag
create more readable source?
Use the
indent
function.