teuben / nemo

a Stellar Dynamics Toolbox (Not Everybody Must Observe)
https://astronemo.readthedocs.io
GNU General Public License v2.0
57 stars 42 forks source link

Various regex fixes/ improvements #69

Closed ParkerTewell closed 3 years ago

ParkerTewell commented 3 years ago

Added a ^ to .TP scan so it forces the line to start with a .TP but it can still be followed by other stuff like ".TP 20" Changed parameter parsing with parentheses which capture only the stuff we want. This lets us avoid splitting the string after parsing. Will update the other regex's for .SH parsing and help parsing to make everything uniform.

teuben commented 3 years ago

interesting: i saved the output of "checkpars.log" before and after the merge. And in the old one it would find snapfit to be missing the maxreport= keyword in the help= , i.e. the man page had too many entries. Turns out you did the right thing with that beginning of line match, but maxreport was commented out using the .\" .TP .\" \fBmaxreport=\fP\fI method of commenting out lines in a man page

teuben commented 3 years ago

There is a man page on checkpars (in section 8), but since checkpars itself is not a true nemo help=h command, it does not check itself!