aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit63a479e7ee9cd5025e61de1f3edf07944f7ef66f (patch)
tree043d45d524e75d0cf47810a5a434268f1ace175a
parentcd186b518dea3dde8929e4bb117c566864bc6621 (diff)
downloadmandoc-63a479e7ee9cd5025e61de1f3edf07944f7ef66f.tar.gz
mandoc-63a479e7ee9cd5025e61de1f3edf07944f7ef66f.tar.zst
mandoc-63a479e7ee9cd5025e61de1f3edf07944f7ef66f.zip
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.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 9bdcd426..8f2f857b 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.304 2018/05/25 20:23:51 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.305 2018/05/29 01:55:50 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014,2015,2016,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -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;