Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
When I have time I'll do a search for man pages that actually *need*
-ms, as I'm getting the impression that it's never used for man pages
and all of grog's guesses for it are wrong.
|
|
Those instructions may sometimes confuse grog and cause it to autodetect
the wrong macro package.
|
|
|
|
Because, without that argument, groff (invoking grotty) will output
SGR escape sequences, which we're not ready to deal with.
|
|
Unfortunately, this can lead to slightly confusing scenarios, because
the exact package of the displayed man page is not very well defined.
It's possible that, when browsing from a package listing to a man page,
you may see an included file that does not come from the package you
browsed from.
E.g. https://manned.org/pwrite/5f2909f6 - that man page simply includes
pread.2, but from the URL it's unclear from which package or system it
should be included.
The only way to fix this is to add the package ID to the link format.
|
|
- Fix segfault on empty output (bug was in XS code)
- Still better end-of-URL detection
- Recognize a few common multicharacter sections in man references
|
|
The previous C code was troublesome.
- Didn't handle long lines
- I couldn't convince myself that it was free of memory safety issues
- Needed improving anyway, there are some formatting bugs. These are
hard to fix in the current code.
I mostly replicated the formatting bugs of the old C implementation in
Rust, and possibly added a few new bugs as well. It's not a significant
improvement right now, more testing and fixing will be needed.
The performance of both implementations is comparable, with the Rust
version being slightly faster in many cases (and slower in some others).
I did spend more time trying to optimize this Rust version than I did
with the old C code. I initially tried a naive-ish conversion of the C
code to Rust, but that turned out to be much slower and I had to resort
to using regexes and different data structures fix that.
|
|
This doesn't really guarantee that it won't wrap, but fixes at least one
man page.
- https://manned.org/BlockSelectionDCOPInterface/6dfdf921
|
|
I've known about this issue before, but didn't realize it was so
widespread. This fixes many links.
|
|
|
|
|
|
|
|
I've found 90 to be a tiny bit too wide - it makes the contents overlap
with the selection box in not-very-wide windows.
|
|
Looks slightly less cramped.
|
|
The characters <>" are now simply not allowed in URLs. Incidentally,
this also fixes formatting of some URLs within brackets, e.g.
<http://blicky.net/>.
|
|
|
|
Grotty outputs double-formatted characters for some (old) manual pages.
This fix ignores the second part of the double-formatting, thus making
things readable again.
|
|
|
|
|
|
|
|
|
|
|