man supports `.SS' for subsection headings. Use it.
[sgt/halibut] / 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, " ");