diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-30 11:00:53 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-30 11:00:53 +0000 |
commit | d767ea8dca6d98f405dc7525a38d5a6d61b3652f (patch) | |
tree | 46981a9a6b321d10b4c856989b73f4fb815dda6b /mdoc.c | |
parent | b64011c9d38153292597008b06e898298b3ab30f (diff) | |
download | mandoc-d767ea8dca6d98f405dc7525a38d5a6d61b3652f.tar.gz |
Made `Dt' default to LOCAL and UNKNOWN instead of local and unknown (note case).
Have `Dt' default to UNKNOWN if it's an empty string.
Raise a warning if `Dt' title isn't capitalised.
Sync'd `Dt' documentation with reality.
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -276,11 +276,11 @@ mdoc_macro(struct mdoc *m, enum mdoct tok, if ( ! mdoc_pmsg(m, ln, pp, MANDOCERR_BADPROLOG)) return(0); if (NULL == m->meta.title) - m->meta.title = mandoc_strdup("unknown"); + m->meta.title = mandoc_strdup("UNKNOWN"); if (NULL == m->meta.vol) - m->meta.vol = mandoc_strdup("local"); + m->meta.vol = mandoc_strdup("LOCAL"); if (NULL == m->meta.os) - m->meta.os = mandoc_strdup("local"); + m->meta.os = mandoc_strdup("LOCAL"); if (0 == m->meta.date) m->meta.date = time(NULL); m->flags |= MDOC_PBODY; |