From 22905f7294b647c53acc689ee83a0096d1de1976 Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 25 Mar 2004 18:31:45 +0000 Subject: [PATCH] Apparently we must include the .TH directive in a man page even when there's nothing to go in it. git-svn-id: svn://svn.tartarus.org/sgt/halibut@3977 cda61777-01e9-0310-a592-d414129be87e --- bk_man.c | 24 +++++++++++------------- 1 file 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"); -- 2.11.0