diff options
author | 2017-01-25 02:14:43 +0000 | |
---|---|---|
committer | 2017-01-25 02:14:43 +0000 | |
commit | 1ec67c1af1b363b2138d23adb47cf9a20831b5d1 (patch) | |
tree | 9634a2c1e0aa1949c5c75ce5eb08378ee14ef3b8 /mandoc_html.3 | |
parent | 5d0a6a3dde9b1be9a0d4b91df936289aec6b292b (diff) | |
download | mandoc-1ec67c1af1b363b2138d23adb47cf9a20831b5d1.tar.gz mandoc-1ec67c1af1b363b2138d23adb47cf9a20831b5d1.tar.zst mandoc-1ec67c1af1b363b2138d23adb47cf9a20831b5d1.zip |
Improve HTML formatting of .Bl -tag.
In particular, when using the style sheet, put the body on the same
line as the head for short heads, or on the next line for long
heads, in a way that preserves both correct indentation and correct
vertical spacing with and without -compact, and with one or more
heads per body (hi, Zaphod) - eight use cases so far - and with and
without -tag, and with and without -offset, 32 use cases grand total.
Using many ideas from zhuk@, from <David dot Dahlberg at fkie dot
fraunhofer dot de>, and from Benny Lofgren <bl dash lists at lofgren
dot biz>, and a few of my own.
This is an excellent demonstration that CSS is an extremely hostile
language, much more trapful and much harder to use than, say, C.
When matthew@ reported this in July 2014 (!), it was already a known
issue, and i no longer remember for how long. My first serious
attempt at fixing it (in November 2015) failed miserably. I'd love
to see simplifications of both the generated HTML code and of the
style sheet, but without breaking any of the 32 use cases, please.
Diffstat (limited to 'mandoc_html.3')
-rw-r--r-- | mandoc_html.3 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mandoc_html.3 b/mandoc_html.3 index 80b1fe69..a77cdf45 100644 --- a/mandoc_html.3 +++ b/mandoc_html.3 @@ -1,4 +1,4 @@ -.\" $Id: mandoc_html.3,v 1.3 2017/01/17 15:32:44 schwarze Exp $ +.\" $Id: mandoc_html.3,v 1.4 2017/01/25 02:14:43 schwarze Exp $ .\" .\" Copyright (c) 2014, 2017 Ingo Schwarze <schwarze@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: January 17 2017 $ +.Dd $Mdocdate: January 25 2017 $ .Dt MANDOC_HTML 3 .Os .Sh NAME @@ -212,6 +212,10 @@ Requires one argument, interpreted as an .Xr mdoc 7 Ns -style width specifier. +.It Cm W +Similar to +.Cm w , +but makes the width negative by multiplying it with \(mi1. .El .Pp Style name letters decide what to do with the preceding argument: |