diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-31 08:34:12 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-31 08:34:12 +0000 |
commit | 561b1fee8774cad663b9477aef5763fb4d38286b (patch) | |
tree | c55f75bc2d872eaf9fd964820a02630f1c17974c | |
parent | 8eda95c174f261a74db98c38c4d4ae30895d3523 (diff) | |
download | mandoc-561b1fee8774cad663b9477aef5763fb4d38286b.tar.gz |
Fixed -Thtml printing of -ohang lists (-mdoc).
Fixed validation of -ohang lists as having no widths.
-rw-r--r-- | mdoc_html.c | 7 | ||||
-rw-r--r-- | mdoc_validate.c | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c index f3fd24fe..9e591d5c 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -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): diff --git a/mdoc_validate.c b/mdoc_validate.c index 61d4c3c6..088bb09a 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -665,6 +665,8 @@ pre_bl(PRE_ARGS) /* FALLTHROUGH */ case (MDOC_Diag): /* FALLTHROUGH */ + case (MDOC_Ohang): + /* FALLTHROUGH */ case (MDOC_Inset): /* FALLTHROUGH */ case (MDOC_Item): |