Add manpage building support to conf.py, and fix formatting errors

Forwarding a patch originally applied in Debian by Charlie Smotherman. This fixes indentation errors, and also fixes a bug when a line starting with a `.` was not visible.