diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2022-03-17 18:45:49 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2022-03-17 18:45:49 +0000 |
commit | 2e615e9c3acfedbf9477bfdaa03f9281e57e034e (patch) | |
tree | 19546760624ab9315b3c48930b8473358dc1fb24 | |
parent | 57aeeff3391d678f129f7098a5707a1dc53f574d (diff) | |
download | mandoc-2e615e9c3acfedbf9477bfdaa03f9281e57e034e.tar.gz mandoc-2e615e9c3acfedbf9477bfdaa03f9281e57e034e.tar.zst mandoc-2e615e9c3acfedbf9477bfdaa03f9281e57e034e.zip |
Avoid legacy CSS2 syntax for the "display" property and use the CSS3
two-value syntax "display: inline flow;" instead. In particular, there
is no need to establish a new block formatting context with "flow-root",
and in fact that's detrimental because it appears to introduce spurious
soft-wrap opportunities.
jmc@ reported a bogus line break between the opening angle bracket
generated by .Aq Mt and the following email address.
-rw-r--r-- | mandoc.css | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: mandoc.css,v 1.48 2021/03/30 19:26:20 schwarze Exp $ */ +/* $Id: mandoc.css,v 1.49 2022/03/17 18:45:49 schwarze Exp $ */ /* * Standard style sheet for mandoc(1) -Thtml and man.cgi(8). * @@ -195,7 +195,7 @@ code.Nm { font-style: normal; font-family: inherit; } .Ar { font-style: italic; font-weight: normal; } -.Op { display: inline; } +.Op { display: inline flow; } .Ic { font-style: normal; font-weight: bold; font-family: inherit; } @@ -250,7 +250,7 @@ a.In { } /* Physical markup. */ -.Bf { display: inline; } +.Bf { display: inline flow; } .No { font-style: normal; font-weight: normal; } .Em { font-style: italic; @@ -267,7 +267,7 @@ h1.Sh, h2.Ss { position: relative; } .An, .Ar, .Cd, .Cm, .Dv, .Em, .Er, .Ev, .Fa, .Fd, .Fl, .Fn, .Ft, .Ic, code.In, .Lb, .Lk, .Ms, .Mt, .Nd, code.Nm, .Pa, .Rs, .St, .Sx, .Sy, .Va, .Vt, .Xr { - display: inline-block; + display: inline flow; position: relative; } .An::before { content: "An"; } |