diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-01 16:01:28 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-01 16:01:28 +0000 |
commit | 184c23d8c4f64f7c9f1dacc99d76d0dd10303386 (patch) | |
tree | 5f1f72449b43ab185f0d0006899526e147ce5ec2 /xml.c | |
parent | 78514c9d13534db5603803edfe8e818d9fe11597 (diff) | |
download | mandoc-184c23d8c4f64f7c9f1dacc99d76d0dd10303386.tar.gz |
Considerable scoping fixes.
Diffstat (limited to 'xml.c')
-rw-r--r-- | xml.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -28,7 +28,7 @@ #include "libmdocml.h" #include "private.h" -#define INDENT 4 +#define MAXINDENT 8 #define COLUMNS 60 #ifdef __linux__ /* FIXME */ @@ -141,11 +141,11 @@ mbuf_indent(struct md_xml *p) assert(p->pos == 0); /* LINTED */ - for (i = 0; i < MIN(p->indent, INDENT); i++) + for (i = 0; i < MIN(p->indent, MAXINDENT); i++) if ( ! md_buf_putstring(p->mbuf, " ")) return(0); - p->pos += i * INDENT; + p->pos += i * 4; return(1); } @@ -195,7 +195,7 @@ mbuf_data(struct md_xml *p, int space, char *buf) return(0); if ( ! mbuf_nputstring(p, bufp, sz)) return(0); - if (p->indent * INDENT + sz >= COLUMNS) { + if (p->indent * MAXINDENT + sz >= COLUMNS) { if ( ! mbuf_newline(p)) return(0); continue; |