New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
indentation in code examples is lost #21
Comments
|
Thanks for the report. Manpage rendering is done by mandoc(1). The indentation is present when rendering to stdout: …but not when rendering to HTML: This is reproducible with the mandoc version in Debian testing (1.13.3-3), and with a CVS checkout from yesterday. Would you like to report this issue upstream? If you’d prefer, I could do that for you. |
|
Thanks for clarifying that the pages are generated with mandoc. |
with "literal", by the way, it means "no fill"): * Use <pre> such that whitespace is preserved. * Preserve lines breaks. * For font alternating macros, avoid node recursion which required scary juggling with the fill state. Instead, simply print the text children directly. Missing feature first noticed by kristaps@ in 2011, the again reported by afresh1@ in 2016, and finally reported here: Debian/debiman#21 , which i only found because of Shane Kerr's comment here: https://plus.google.com/110314300533310775053/posts/H1eaw9Yskoc
|
This has been fixed upstream. Re-opening this issue to track the rollout of the new version to manpages.d.o. |
<div class="mandoc"> is no longer present since http://mdocml.bsd.lv/cgi-bin/cvsweb/man_html.c.diff?r1=1.125&r2=1.126 <div class="spacer"> is called <div class="Pp"> since http://mdocml.bsd.lv/cgi-bin/cvsweb/html.c.diff?r1=1.197&r2=1.198 A couple of other cosmetic HTML changes required updating the golden files (e.g. changes in whitespace and additional HTML class names). related to #21
|
This is now live. |
Some manpages have source code examples, like scanf(3).
The generated HTML page loses the indentation, which doesn't look very nice.
The text was updated successfully, but these errors were encountered: