better para_Rule implementation for "man" backend, using TROFF's built-in
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 6 May 2006 13:59:03 +0000 (13:59 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 6 May 2006 13:59:03 +0000 (13:59 +0000)
line-drawing function.

git-svn-id: svn://svn.tartarus.org/sgt/halibut@6648 cda61777-01e9-0310-a592-d414129be87e

bk_man.c

index 553b2dd..14fc295 100644 (file)
--- a/bk_man.c
+++ b/bk_man.c
@@ -289,11 +289,12 @@ void man_backend(paragraph *sourceform, keywordlist *keywords,
 
       case para_Rule:
        /*
-        * This isn't terribly good. Anyone who wants to do better
-        * should feel free!
+        * New paragraph containing a horizontal line 1/2em above the
+        * baseline whose length is the line length minus the current
+        * indent.
         */
        cleanup_described_thing;
-       fprintf(fp, ".PP\n----------------------------------------\n");
+       fprintf(fp, ".PP\n\\u\\l'\\n(.lu-\\n(.iu'\\d\n");
        break;
 
       case para_LcontPush: