From b41395abe6f8f8abb6fc31c6ed2a515bdd24b482 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 31 Oct 2009 08:34:12 +0000 Subject: Fixed -Thtml printing of -ohang lists (-mdoc). Fixed validation of -ohang lists as having no widths. --- mdoc_html.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'mdoc_html.c') diff --git a/mdoc_html.c b/mdoc_html.c index 8995f093..15986cc7 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.45 2009/10/31 06:50:25 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.46 2009/10/31 08:34:12 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -951,9 +951,10 @@ mdoc_it_head_pre(MDOC_ARGS, int type, struct roffsu *width) switch (type) { case (MDOC_Item): - /* FALLTHROUGH */ - case (MDOC_Ohang): return(0); + case (MDOC_Ohang): + print_otag(h, TAG_DIV, 0, &tag); + return(1); case (MDOC_Column): bufcat_su(h, "min-width", width); bufcat_style(h, "clear", "none"); @@ -1067,6 +1068,8 @@ mdoc_it_pre(MDOC_ARGS) /* Override width in some cases. */ switch (type) { + case (MDOC_Ohang): + /* FALLTHROUGH */ case (MDOC_Item): /* FALLTHROUGH */ case (MDOC_Inset): -- cgit v1.2.3-56-ge451