summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-30 11:00:53 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-30 11:00:53 +0000
commitd767ea8dca6d98f405dc7525a38d5a6d61b3652f (patch)
tree46981a9a6b321d10b4c856989b73f4fb815dda6b /mdoc.c
parentb64011c9d38153292597008b06e898298b3ab30f (diff)
downloadmandoc-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc.c b/mdoc.c
index b7048c98..f5373f75 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -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;