CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2018/06/10 10:15:40
Modified files: usr.bin/mandoc : mandoc.css mdoc_html.c Log message: In HTML output, for lists that have an -indent argument, just use a uniform indentation in CSS adapted to the viewport width and ignore the value of the argument taken from mdoc(7). While author-specified widths somewhat work as a micro-optimization in terminal and typeset output, they are nothing but harmful in HTML style= attributes because they break responsive design, whereas using a reasonable default indent almost never results in ugly output. Admittedly, the author-specified width might occasionally look even better, but only slightly so, and only for some viewport sizes. Based on guidance provided by John Gardner.