>>> How can i improve the HTML Output that it looks like this: >>> >>> <ul> >>> <li>blubb</li> have you tried some.wrap( multiline ) instead of some.wrap= Endeed I have not tested!