<li> elements are now closed

<li> elements get closed, but the <ul> element they are contained in is
not closed and the list seems to continue.

Printing the line seems to work before the continuingList statements, but
not after them. Need to check out what it is with those statements that
stops it working - python seems to stop after that until the next
deindentation.