troff-to-asciidoc.py: add anchors and fix too many newlines