From 07fb51c1fa33fa0b6a742cbb9e5489b2d60ddd32 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 25 Jun 2018 13:01:19 +0000 Subject: For -man -Thtml, ignore author-specified .HP widths because they harm responsive design; use @media-dependent defaults instead. --- man_html.c | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'man_html.c') diff --git a/man_html.c b/man_html.c index fc4bc692..c4253b5f 100644 --- a/man_html.c +++ b/man_html.c @@ -557,24 +557,13 @@ man_IP_pre(MAN_ARGS) static int man_HP_pre(MAN_ARGS) { - struct roffsu sum, sui; - const struct roff_node *np; - if (n->type == ROFFT_HEAD) return 0; - else if (n->type != ROFFT_BLOCK) - return 1; - - np = n->head->child; - - if (np == NULL || !a2width(np, &sum)) - SCALE_HS_INIT(&sum, INDENT); - sui.unit = sum.unit; - sui.scale = -sum.scale; - - print_bvspace(h, n); - print_otag(h, TAG_DIV, "csului", "Pp", &sum, &sui); + if (n->type == ROFFT_BLOCK) { + print_bvspace(h, n); + print_otag(h, TAG_DIV, "c", "HP"); + } return 1; } -- cgit