summaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-09-17 13:17:30 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-09-17 13:17:30 +0000
commita44f2bc84c36890b9ab4bf78247c0f8d0fcf4e1a (patch)
tree74d1ec9c0f2b537af254a85fa15791e09ed171f7 /mdoc_term.c
parenta2d8a3c6fa626ad4db1bdf75c3eff1b3916d15e9 (diff)
downloadmandoc-a44f2bc84c36890b9ab4bf78247c0f8d0fcf4e1a.tar.gz
mandoc-a44f2bc84c36890b9ab4bf78247c0f8d0fcf4e1a.tar.zst
mandoc-a44f2bc84c36890b9ab4bf78247c0f8d0fcf4e1a.zip
Hang lists in html (the hard one first).
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c38
1 files changed, 37 insertions, 1 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 44dfcd4a..14fb1c9f 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.70 2009/09/16 09:41:24 kristaps Exp $ */
+/* $Id: mdoc_term.c,v 1.71 2009/09/17 13:17:30 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -26,6 +26,41 @@
#include "term.h"
#include "mdoc.h"
+/* FIXME: check HANG lists: they seem to be broken... :
+ * .Bl -hang -width Ds
+ * .It a
+ * b
+ * .It Fl f Ns Ar option...
+ * Override default compiler behaviour. See
+ * .Sx Compiler Options
+ * for details.
+ * Override default compiler behaviour. See
+ * .Sx Compiler Options
+ * for details.
+ * Override default compiler behaviour. See
+ * .Sx Compiler Options
+ * for details.
+ * Override default compiler behaviour. See
+ * .Sx Compiler Options
+ * for details.
+ * .
+ * .It a sasd fasd as afsd sfad sfds sadfs sd sfd ssfad asfd
+ * Override default compiler behaviour. See
+ * .Sx Compiler Options
+ * for details.
+ * Override default compiler behaviour. See
+ * .Sx Compiler Options
+ * for details.
+ * Override default compiler behaviour. See
+ * .Sx Compiler Options
+ * for details.
+ * Override default compiler behaviour. See
+ * .Sx Compiler Options
+ * for details.
+ * .El
+ *
+ */
+
#define INDENT 5
#define HALFINDENT 3
@@ -458,6 +493,7 @@ print_head(DECL_ARGS)
}
+/* TODO: put into util file. */
static size_t
arg_width(const struct mdoc_argv *arg, int pos)
{