diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-04-12 19:19:57 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-04-12 19:19:57 +0000 |
commit | 46efc2522501cd7521cb08c1686de2dbf6544a03 (patch) | |
tree | 838e5d0fddbf9c6b0778c423a3570102f46edc83 /mdoc_macro.c | |
parent | 72def18baa480a6e0b55cbe174a49649342cd895 (diff) | |
download | mandoc-46efc2522501cd7521cb08c1686de2dbf6544a03.tar.gz |
Manual .Dt fields CAPITALISED.
Indent set to 5 chars (nroff compat).
Half-indent set to 3 chars (nroff compat).
Default behaviour is loose-y (ignore macro/char/escape).
Added -fstrict.
Added unknown-character ignoring.
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r-- | mdoc_macro.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c index 4e4a799d..db22ccf4 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -871,9 +871,11 @@ in_line(MACRO_PROT_ARGS) tok, arg)) return(0); mdoc->next = MDOC_NEXT_SIBLING; - } else if ( ! nc && 0 == cnt) + } else if ( ! nc && 0 == cnt) { + mdoc_argv_free(arg); if ( ! pwarn(mdoc, line, ppos, WIGNE)) return(0); + } c = mdoc_macro(mdoc, c, line, la, pos, buf); if (0 == c) return(0); @@ -924,9 +926,11 @@ in_line(MACRO_PROT_ARGS) if (0 == c) return(0); mdoc->next = MDOC_NEXT_SIBLING; - } else if ( ! nc && 0 == cnt) + } else if ( ! nc && 0 == cnt) { + mdoc_argv_free(arg); if ( ! pwarn(mdoc, line, ppos, WIGNE)) return(0); + } if (ppos > 1) return(1); |