version 1.16, 2009/01/21 11:35:26 |
version 1.18, 2009/02/21 21:00:06 |
Line 216 post_dt(struct mdoc *mdoc) |
|
Line 216 post_dt(struct mdoc *mdoc) |
|
|
|
assert(NULL == mdoc->meta.title); |
assert(NULL == mdoc->meta.title); |
|
|
|
/* LINTED */ |
for (i = 0, n = mdoc->last->child; n; n = n->next, i++) { |
for (i = 0, n = mdoc->last->child; n; n = n->next, i++) { |
assert(MDOC_TEXT == n->type); |
assert(MDOC_TEXT == n->type); |
p = n->data.text.string; |
p = n->data.text.string; |
Line 243 post_dt(struct mdoc *mdoc) |
|
Line 244 post_dt(struct mdoc *mdoc) |
|
} |
} |
|
|
if (NULL == mdoc->meta.title) |
if (NULL == mdoc->meta.title) |
mdoc->meta.title = xstrdup("untitled"); |
mdoc->meta.title = xstrdup("UNTITLED"); |
|
|
mdoc_msg(mdoc, "title: %s", mdoc->meta.title); |
mdoc_msg(mdoc, "title: %s", mdoc->meta.title); |
|
|