summaryrefslogtreecommitdiffstats
path: root/mlg.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-03 21:27:56 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-03 21:27:56 +0000
commitf0f40906a39936e2d4cd4ddcb8bf4bdb33c2da08 (patch)
tree91c9b7d6bf79be33573f72401f26257e0c207d49 /mlg.c
parentc67723cb5220a19191e6836e53b8d0a489c86797 (diff)
downloadmandoc-f0f40906a39936e2d4cd4ddcb8bf4bdb33c2da08.tar.gz
Initial html outputs working.
Diffstat (limited to 'mlg.c')
-rw-r--r--mlg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mlg.c b/mlg.c
index eaf032e8..c771bcff 100644
--- a/mlg.c
+++ b/mlg.c
@@ -189,7 +189,7 @@ mlg_indent(struct md_mlg *p)
{
size_t count;
- count = p->indent > MAXINDENT ? MAXINDENT : p->indent;
+ count = p->indent > MAXINDENT ? (size_t)MAXINDENT : p->indent;
count *= INDENT;
assert(0 == p->pos);
@@ -212,6 +212,7 @@ mlg_newline(struct md_mlg *p)
static void
mlg_mode(struct md_mlg *p, enum md_tok ns)
{
+
p->flags &= ~ML_OVERRIDE_ONE;
p->last = ns;
}
@@ -252,7 +253,7 @@ mlg_data(struct md_mlg *p, int space, char *buf)
if ( ! ml_nputstring(p->mbuf, bufp,
sz, &p->pos))
return(0);
- if (p->indent * MAXINDENT + sz >= COLUMNS)
+ if (p->indent * INDENT + sz >= COLUMNS)
if ( ! mlg_newline(p))
return(0);
if ( ! (ML_OVERRIDE_ALL & p->flags))