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 | 64f804892d86409e054d72a0a2fae9733b46ce16 (patch) | |
tree | fdc9f4ad378eaecaa1685480daa123838fff3d15 /mdoc_macro.c | |
parent | 60b9600bd2c7ac00417ebb42873ffe00a80a205f (diff) | |
download | mandoc-64f804892d86409e054d72a0a2fae9733b46ce16.tar.gz mandoc-64f804892d86409e054d72a0a2fae9733b46ce16.tar.zst mandoc-64f804892d86409e054d72a0a2fae9733b46ce16.zip |
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 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c index 3f11ed1e..ce5547c7 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_macro.c,v 1.6 2009/04/02 06:51:44 kristaps Exp $ */ +/* $Id: mdoc_macro.c,v 1.7 2009/04/12 19:19:57 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org> * @@ -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); |