# HG changeset patch # User Jeff Hammel # Date 1596645927 25200 # Node ID e5861cbbc4bbba04a4b423fb52e51ebbdf0ee4f3 # Parent 3b7f670218772eae9396830dee14230aa332a78a python3 diff -r 3b7f67021877 -r e5861cbbc4bb python/html2flux.py --- a/python/html2flux.py Wed Aug 05 09:27:14 2020 -0700 +++ b/python/html2flux.py Wed Aug 05 09:45:27 2020 -0700 @@ -125,14 +125,15 @@ for name, item in menu: if isinstance(item, string): # command - print >> output, '[exec] (%s) {%s}' % (name, item) + output.write('[exec] (%s) {%s}\n' % (name, item)) else: # submenu printflux(name, item, output, top=False) # print end of this submenu if not top: - print >> output, '[end]' + output.write('[end]\n') + def printmenu(dl, output): name, menu = readmenu(dl, output)