From f0f40906a39936e2d4cd4ddcb8bf4bdb33c2da08 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 3 Dec 2008 21:27:56 +0000 Subject: Initial html outputs working. --- mlg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mlg.c') 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)) -- cgit