Reformat tphelp.ml

- Untabify
- Break long lines
- Consistent indentation
- Strip trailing whitespace
Bugfixing in PRETTY_PRINT_2DA

The number of spaces to insert was gotten from the wrong line, so
if there was only one column, the variable would be unset (because there
was no match).