Summary: | bc(1): Multiple issues in manual page | ||
---|---|---|---|
Product: | Documentation | Reporter: | CrazyMihey <CrazyMihey> |
Component: | Manual Pages | Assignee: | Stefan Eßer <se> |
Status: | In Progress --- | ||
Severity: | Affects Some People | CC: | CrazyMihey, doc, gavin, pauamma, se, wosch |
Priority: | --- | Keywords: | needs-patch, needs-qa |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any | ||
URL: | HTTPS://WWW.FreeBSD.Org/cgi/man.cgi?query=bc |
Description
CrazyMihey
2022-06-06 16:03:28 UTC
(In reply to CrazyMihey from comment #0) The documentation is generated from MarkDown sources and the issues seem to be the result of a less-than-optimal transformation process. I'll forward the PR to Gavin Howard (gavin at yzena.com), the author of the program and its documentation to assess the cause of the problem. (In reply to Stefan Eßer from comment #1) After checking the output of "man bc" and comparing the rendered text with the ASCII rendering on the web site https://www.freebsd.org/cgi/man.cgi?query=bc&format=ascii it appears to be an issue of this rendering process. The man page is rendered correctly by mandoc - I'd have to check what programs are used for the web rendering. There are probably a couple things I can do to the Markdown to make it better as a webpage, but if it's an issue with FreeBSD's renderer, that would probably be a better place to fix it. Regardless, I'm willing. (In reply to Gavin D. Howard from comment #3) I have found the cause of the broken elements and URLs: The man page is rendered with "groff -man", and with default settings this enables block justification and hyphenation. Adding 2 macros (.nh and .ad l) to the start of the man page solves the issue. This causes left justified ragged lines and disables hyphenation. But since the default settings are inappropriate (at least for man pages that contain long options in the SYNOPSYS and long URLs in the text), I'm wondering whether it might be possible to run "groff" with options that change the processing to no hyphenation and ragged lines without the need of macros in each affected man-page. And I still do not understand why the man pages are formatted with groff, anyway. We have mandoc and it seems its default formatting option are sane ... (In reply to Stefan Eßer from comment #4) https://wiki.freebsd.org/Doc/IdeaList#Website carlavilla's working on it. |