=================================================================== RCS file: /cvs/mandoc/mdoc.c,v retrieving revision 1.138 retrieving revision 1.141 diff -u -p -r1.138 -r1.141 --- mandoc/mdoc.c 2010/05/25 12:37:20 1.138 +++ mandoc/mdoc.c 2010/05/31 10:28:04 1.141 @@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.138 2010/05/25 12:37:20 kristaps Exp $ */ +/* $Id: mdoc.c,v 1.141 2010/05/31 10:28:04 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -69,7 +69,7 @@ const char *const __mdoc_macronames[MDOC_MAX] = { /* LINTED */ "Dx", "%Q", "br", "sp", /* LINTED */ - "%U" + "%U", "Ta" }; const char *const __mdoc_argnames[MDOC_ARG_MAX] = { @@ -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; @@ -560,6 +560,8 @@ mdoc_ptext(struct mdoc *m, int line, char *buf, int of * Search for the beginning of unescaped trailing whitespace (ws) * and for the first character not to be output (end). */ + + /* FIXME: replace with strcspn(). */ ws = NULL; for (c = end = buf + offs; *c; c++) { switch (*c) {