From 2e615e9c3acfedbf9477bfdaa03f9281e57e034e Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 17 Mar 2022 18:45:49 +0000 Subject: 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. --- mandoc.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mandoc.css b/mandoc.css index ceac503a..0b64d80c 100644 --- a/mandoc.css +++ b/mandoc.css @@ -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"; } -- cgit v1.2.3-56-ge451