diff options
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bd/paragraph.out_html | 2 | ||||
-rw-r--r-- | usr.bin/mandoc/mandoc.css | 3 | ||||
-rw-r--r-- | usr.bin/mandoc/mdoc_html.c | 9 |
3 files changed, 9 insertions, 5 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Bd/paragraph.out_html b/regress/usr.bin/mandoc/mdoc/Bd/paragraph.out_html index 22355ed1e2b..df5fc6d6062 100644 --- a/regress/usr.bin/mandoc/mdoc/Bd/paragraph.out_html +++ b/regress/usr.bin/mandoc/mdoc/Bd/paragraph.out_html @@ -7,7 +7,7 @@ </div> back to normal <p class="Pp">another paragraph</p> -<div class="Bd Pp" id="unfilled"> +<div class="Bd Pp Li" id="unfilled"> <pre><a class="permalink" href="#unfilled">unfilled</a> literal display <mark id="upara"></mark> diff --git a/usr.bin/mandoc/mandoc.css b/usr.bin/mandoc/mandoc.css index ca7f2602e58..2b19ba68596 100644 --- a/usr.bin/mandoc/mandoc.css +++ b/usr.bin/mandoc/mandoc.css @@ -1,4 +1,4 @@ -/* $OpenBSD: mandoc.css,v 1.34 2020/10/30 21:31:19 schwarze Exp $ */ +/* $OpenBSD: mandoc.css,v 1.35 2021/03/30 19:23:50 schwarze Exp $ */ /* * Standard style sheet for mandoc(1) -Thtml and man.cgi(8). * @@ -31,6 +31,7 @@ td { vertical-align: top; ul, ol, dl { margin-top: 0em; margin-bottom: 0em; } li, dt { margin-top: 1em; } +pre { font-family: inherit; } .permalink { border-bottom: thin dotted; color: inherit; diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c index b5442dfd9b4..e6dbfbe4a83 100644 --- a/usr.bin/mandoc/mdoc_html.c +++ b/usr.bin/mandoc/mdoc_html.c @@ -1,6 +1,6 @@ -/* $OpenBSD: mdoc_html.c,v 1.216 2020/10/16 17:22:39 schwarze Exp $ */ +/* $OpenBSD: mdoc_html.c,v 1.217 2021/03/30 19:23:50 schwarze Exp $ */ /* - * Copyright (c) 2014-2020 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2014-2021 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * * Permission to use, copy, modify, and distribute this software for any @@ -928,7 +928,7 @@ mdoc_sx_pre(MDOC_ARGS) static int mdoc_bd_pre(MDOC_ARGS) { - char buf[16]; + char buf[20]; struct roff_node *nn; int comp; @@ -965,6 +965,9 @@ mdoc_bd_pre(MDOC_ARGS) strcmp(n->norm->Bd.offs, "left") != 0) (void)strlcat(buf, " Bd-indent", sizeof(buf)); + if (n->norm->Bd.type == DISP_literal) + (void)strlcat(buf, " Li", sizeof(buf)); + print_otag_id(h, TAG_DIV, buf, n); return 1; } |