diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-15 17:57:51 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-15 17:57:51 +0000 |
commit | 7cad5a257f6181e7aae5ca0002589081a02dd064 (patch) | |
tree | 3d881057024b8ea6b95c3c3035d42824ff69e745 /mdoc_html.c | |
parent | 48a3d96ced4dc84ed0590b190e638ee2b76458e5 (diff) | |
download | mandoc-7cad5a257f6181e7aae5ca0002589081a02dd064.tar.gz |
In .Bl -tag and -hang, do not print a margin-left style attribute
for each individual item if the -width argument matches the default
of 6n. Suggested by Steffen Nurpmeso <steffen at sdaoden dot eu>
on <groff at GNU dot org> in April 2017.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r-- | mdoc_html.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mdoc_html.c b/mdoc_html.c index 3ef5169e..7a972038 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -732,7 +732,7 @@ mdoc_it_pre(MDOC_ARGS) print_otag(h, TAG_B, "c", cattr); break; case ROFFT_BODY: - print_otag(h, TAG_DD, "csw+l", cattr, + print_otag(h, TAG_DD, "csw*+l", cattr, bl->norm->Bl.width); break; default: @@ -746,7 +746,7 @@ mdoc_it_pre(MDOC_ARGS) (n->parent->prev == NULL || n->parent->prev->body == NULL || n->parent->prev->body->child != NULL)) { - t = print_otag(h, TAG_DT, "csw+-l", + t = print_otag(h, TAG_DT, "csw*+-l", cattr, bl->norm->Bl.width); print_text(h, "\\ "); print_tagq(h, t); @@ -754,7 +754,7 @@ mdoc_it_pre(MDOC_ARGS) print_text(h, "\\ "); print_tagq(h, t); } - print_otag(h, TAG_DT, "csw+-l", cattr, + print_otag(h, TAG_DT, "csw*+-l", cattr, bl->norm->Bl.width); break; case ROFFT_BODY: @@ -860,7 +860,7 @@ mdoc_bl_pre(MDOC_ARGS) case LIST_tag: if (bl->offs) print_otag(h, TAG_DIV, "cswl", "Bl-tag", bl->offs); - print_otag(h, TAG_DL, "csw+l", bl->comp ? + print_otag(h, TAG_DL, "csw*+l", bl->comp ? "Bl-tag Bl-compact" : "Bl-tag", bl->width); return 1; case LIST_column: |