summaryrefslogtreecommitdiffstats
path: root/man_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2014-09-27 10:56:18 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2014-09-27 10:56:18 +0000
commit1eb4a079a00426a06a0b3aa029e8dd5606190897 (patch)
treea38877683ef4ca999c3114329bfac080a8028957 /man_html.c
parentb4b566f2e27b30860a34ca722167ff748d29060d (diff)
downloadmandoc-1eb4a079a00426a06a0b3aa029e8dd5606190897.tar.gz
Remove <p> in favour of <div class="spacer">.
This is good because <p> is brittle: it can't appear within other block macros. This fixes a regression of the original HTML5 patch as noted by schwarze@ on the tech@ list, 14/8/2014.
Diffstat (limited to 'man_html.c')
-rw-r--r--man_html.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/man_html.c b/man_html.c
index 74d2a4e5..dce71178 100644
--- a/man_html.c
+++ b/man_html.c
@@ -142,7 +142,7 @@ print_bvspace(struct html *h, const struct man_node *n)
if (NULL == n->prev)
return;
- print_otag(h, TAG_P, 0, NULL);
+ print_paragraph(h);
}
void
@@ -219,7 +219,7 @@ print_man_node(MAN_ARGS)
* before printing the line's data.
*/
if ('\0' == *n->string) {
- print_otag(h, TAG_P, 0, NULL);
+ print_paragraph(h);
return;
}
@@ -538,7 +538,7 @@ man_IP_pre(MAN_ARGS)
static int
man_HP_pre(MAN_ARGS)
{
- struct htmlpair tag;
+ struct htmlpair tag[2];
struct roffsu su;
const struct man_node *np;
@@ -558,8 +558,9 @@ man_HP_pre(MAN_ARGS)
bufcat_su(h, "margin-left", &su);
su.scale = -su.scale;
bufcat_su(h, "text-indent", &su);
- PAIR_STYLE_INIT(&tag, h);
- print_otag(h, TAG_P, 1, &tag);
+ PAIR_STYLE_INIT(&tag[0], h);
+ PAIR_CLASS_INIT(&tag[1], "spacer");
+ print_otag(h, TAG_DIV, 2, tag);
return(1);
}