aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-03-17 18:45:49 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-03-17 18:45:49 +0000
commit2e615e9c3acfedbf9477bfdaa03f9281e57e034e (patch)
tree19546760624ab9315b3c48930b8473358dc1fb24
parent57aeeff3391d678f129f7098a5707a1dc53f574d (diff)
downloadmandoc-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.css8
1 files 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"; }