summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-05-29 01:55:50 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-05-29 01:55:50 +0000
commit33dfbe2c8901b3ef2e551abee6e31e92dd162fc3 (patch)
treebf216bbb971f95628426a6620ed32b0cd8f559c9
parente334ca57af602b41c9cffc60452e3bf1c30c7107 (diff)
downloadmandoc-33dfbe2c8901b3ef2e551abee6e31e92dd162fc3.tar.gz
Ignore author-specified -width arguments for -tag and -hang lists
in HTML output. For terminal and typeset output, such arguments kind of work to achieve presentational micro-optimization. But for HTML, they only do harm. Large increases usually look ugly. Large reductions are impossible since the default is not large in the first place. Small tweaks in either direction are not important; at least not important enough to justify making responsive design impossible. Triggered by John Gardner's suggestion to further reduce style= attributes in the HTML code, in particular those containing hard-coded lengths.
-rw-r--r--mdoc_html.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 7e24fd68..72ca7f41 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -695,7 +695,7 @@ mdoc_it_pre(MDOC_ARGS)
print_otag(h, TAG_DT, "");
break;
case ROFFT_BODY:
- print_otag(h, TAG_DD, "sw*+l", bl->norm->Bl.width);
+ print_otag(h, TAG_DD, "");
break;
default:
break;
@@ -708,15 +708,14 @@ 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, "sw*+-l",
- bl->norm->Bl.width);
+ t = print_otag(h, TAG_DT, "");
print_text(h, "\\ ");
print_tagq(h, t);
t = print_otag(h, TAG_DD, "");
print_text(h, "\\ ");
print_tagq(h, t);
}
- print_otag(h, TAG_DT, "sw*+-l", bl->norm->Bl.width);
+ print_otag(h, TAG_DT, "");
break;
case ROFFT_BODY:
if (n->child == NULL) {
@@ -821,8 +820,8 @@ 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 ?
- "Bl-tag Bl-compact" : "Bl-tag", bl->width);
+ print_otag(h, TAG_DL, "c", bl->comp ?
+ "Bl-tag Bl-compact" : "Bl-tag");
return 1;
case LIST_column:
elemtype = TAG_TABLE;