summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-31 08:34:12 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-31 08:34:12 +0000
commitb41395abe6f8f8abb6fc31c6ed2a515bdd24b482 (patch)
treef0a6387d52c9021dad07dd0b35f0f5afe91a52ce
parent1f8ebfcb6a16709ba0748e288a058a66786be68a (diff)
downloadmandoc-b41395abe6f8f8abb6fc31c6ed2a515bdd24b482.tar.gz
mandoc-b41395abe6f8f8abb6fc31c6ed2a515bdd24b482.tar.zst
mandoc-b41395abe6f8f8abb6fc31c6ed2a515bdd24b482.zip
Fixed -Thtml printing of -ohang lists (-mdoc).
Fixed validation of -ohang lists as having no widths.
-rw-r--r--mdoc_html.c9
-rw-r--r--mdoc_validate.c4
2 files changed, 9 insertions, 4 deletions
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 <kristaps@kth.se>
*
@@ -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 922546c2..5811c519 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_validate.c,v 1.52 2009/10/31 06:10:58 kristaps Exp $ */
+/* $Id: mdoc_validate.c,v 1.53 2009/10/31 08:34:12 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -665,6 +665,8 @@ pre_bl(PRE_ARGS)
/* FALLTHROUGH */
case (MDOC_Diag):
/* FALLTHROUGH */
+ case (MDOC_Ohang):
+ /* FALLTHROUGH */
case (MDOC_Inset):
/* FALLTHROUGH */
case (MDOC_Item):