diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-03-25 18:31:45 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-03-25 18:31:45 +0000 |
| commit | e5650a35b3ee30edc4288fba5c1e21cc29247fdc (patch) | |
| tree | 4ae971e9fde40bcf90e58c8ba6a77defd7680c92 /bk_man.c | |
| parent | 674cfb5f4f4ed5a7e8df0fe330120784df889bbf (diff) | |
| download | halibut-e5650a35b3ee30edc4288fba5c1e21cc29247fdc.zip halibut-e5650a35b3ee30edc4288fba5c1e21cc29247fdc.tar.gz halibut-e5650a35b3ee30edc4288fba5c1e21cc29247fdc.tar.bz2 halibut-e5650a35b3ee30edc4288fba5c1e21cc29247fdc.tar.xz | |
Apparently we must include the .TH directive in a man page even when
there's nothing to go in it.
[originally from svn r3977]
Diffstat (limited to 'bk_man.c')
| -rw-r--r-- | bk_man.c | 24 |
1 files changed, 11 insertions, 13 deletions
@@ -90,22 +90,20 @@ void man_backend(paragraph *sourceform, keywordlist *keywords, } /* .TH name-of-program manual-section */ - { + fprintf(fp, ".TH"); + if (conf.th && *conf.th) { char *c; - if (conf.th && *conf.th) { - wchar_t *wp; - fprintf(fp, ".TH"); - - for (wp = conf.th; *wp; wp = uadv(wp)) { - fputs(" \"", fp); - man_convert(wp, 0, &c, QUOTE_QUOTES); - fputs(c, fp); - sfree(c); - fputc('"', fp); - } - fputc('\n', fp); + wchar_t *wp; + + for (wp = conf.th; *wp; wp = uadv(wp)) { + fputs(" \"", fp); + man_convert(wp, 0, &c, QUOTE_QUOTES); + fputs(c, fp); + sfree(c); + fputc('"', fp); } } + fputc('\n', fp); fprintf(fp, ".UC\n"); |