summaryrefslogtreecommitdiff
path: root/bk_man.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-03-25 18:31:45 +0000
committerSimon Tatham <anakin@pobox.com>2004-03-25 18:31:45 +0000
commite5650a35b3ee30edc4288fba5c1e21cc29247fdc (patch)
tree4ae971e9fde40bcf90e58c8ba6a77defd7680c92 /bk_man.c
parent674cfb5f4f4ed5a7e8df0fe330120784df889bbf (diff)
downloadhalibut-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.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/bk_man.c b/bk_man.c
index 876ecb5..64e9648 100644
--- a/bk_man.c
+++ b/bk_man.c
@@ -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");