man supports `.SS' for subsection headings. Use it.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 6 Nov 2004 09:11:55 +0000 (09:11 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 6 Nov 2004 09:11:55 +0000 (09:11 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/halibut@4758 cda61777-01e9-0310-a592-d414129be87e

bk_man.c

index 1dcce64..21e33f3 100644 (file)
--- a/bk_man.c
+++ b/bk_man.c
@@ -205,7 +205,10 @@ void man_backend(paragraph *sourceform, keywordlist *keywords,
            else
                depth = 0;
            if (depth >= conf.mindepth) {
-               fprintf(fp, ".SH \"");
+               if (depth > conf.mindepth)
+                   fprintf(fp, ".SS \"");
+               else
+                   fprintf(fp, ".SH \"");
                if (conf.headnumbers && p->kwtext) {
                    man_text(fp, p->kwtext, FALSE, QUOTE_QUOTES, &conf);
                    fprintf(fp, " ");