summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2021-10-17Add Ubuntu 21.10Yorhel1-1/+2
2020-10-16Workaround grog using -ms for pod2man generated sourcesYorhel1-22/+32
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.
2020-08-07ManUtils: Add groff instructions after running grogYorhel1-7/+7
Those instructions may sometimes confuse grog and cause it to autodetect the wrong macro package.
2019-05-25Rust dep updatesYorhel1-1/+1
2018-11-10Fix invocation of groff 1.22.3 to pass on -P-cYorhel1-0/+3
Because, without that argument, groff (invoking grotty) will output SGR escape sequences, which we're not ready to deal with.
2017-02-26www: Include .so mans if found in the same packageYorhel1-8/+0
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.
2017-01-15A few more HTML conversion improvementsYorhel1-1/+1
- 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
2017-01-15Experimental rewrite of grotty to html conversion in RustYorhel3-292/+21
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.
2016-10-16Fix possible wrapping of MANNEDINCLUDE by removing spaceYorhel2-3/+3
This doesn't really guarantee that it won't wrap, but fixes at least one man page. - https://manned.org/BlockSelectionDCOPInterface/6dfdf921
2016-10-16Fix handling of URLs ending in a ⟩Yorhel2-3/+15
I've known about this issue before, but didn't realize it was so widespread. This fixes many links.
2015-04-28Various changes/fixes, 3 new distro versionsYorhel1-0/+3
2014-09-25Fix MANNEDINCLUDE formatting on e.g. zshall.1Yorhel1-1/+1
2013-08-21ManUtils: Disable printing of warningsYorhel1-1/+1
2013-04-27Decrease formatted man page size to 80 columnsYorhel1-1/+1
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.
2012-07-17ManUtils: Widen rendered man page to 90 columnsYorhel1-1/+1
Looks slightly less cramped.
2012-07-17ManUtils: Fix XSS vulnerability and rendering bug in URL formattingYorhel1-7/+5
The characters <>" are now simply not allowed in URLs. Incidentally, this also fixes formatting of some URLs within brackets, e.g. <http://blicky.net/>.
2012-07-11ManUtils: Fix render issues when grog detects multiple macro packagesYorhel1-3/+22
2012-07-11ManUtils: Fix display of double-formatted charactersYorhel1-5/+15
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.
2012-07-11Rewrote manfmt to use AnyEvent and moved it to ManUtilsYorhel1-0/+71
2012-07-11s/GrottyParser/ManUtils/gYorhel4-18/+18
2012-06-18GrottyParser: Fix MANNEDINCLUDE link when the man name contains a dashYorhel1-5/+32
2012-06-16Actually turn .so's into linksYorhel1-0/+10
2012-06-15Initial commitYorhel3-0/+271