Apparently we must include the .TH directive in a man page even when
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 25 Mar 2004 18:31:45 +0000 (18:31 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 25 Mar 2004 18:31:45 +0000 (18:31 +0000)
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

index 876ecb5..64e9648 100644 (file)
--- 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");