diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-03 21:27:56 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-03 21:27:56 +0000 |
commit | f0f40906a39936e2d4cd4ddcb8bf4bdb33c2da08 (patch) | |
tree | 91c9b7d6bf79be33573f72401f26257e0c207d49 /mlg.c | |
parent | c67723cb5220a19191e6836e53b8d0a489c86797 (diff) | |
download | mandoc-f0f40906a39936e2d4cd4ddcb8bf4bdb33c2da08.tar.gz |
Initial html outputs working.
Diffstat (limited to 'mlg.c')
-rw-r--r-- | mlg.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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)) |