summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2006-05-06 13:59:03 +0000
committerBen Harris <bjh21@bjh21.me.uk>2006-05-06 13:59:03 +0000
commit7e0052eaf166f11c07c70b9e342f800f58522eb3 (patch)
treeacadf2bc7dbfab1ce7a4d457889304b9524c6180
parente87d577601d9ab59ed1b1850636d450aa6c7bbcd (diff)
downloadhalibut-7e0052eaf166f11c07c70b9e342f800f58522eb3.zip
halibut-7e0052eaf166f11c07c70b9e342f800f58522eb3.tar.gz
halibut-7e0052eaf166f11c07c70b9e342f800f58522eb3.tar.bz2
halibut-7e0052eaf166f11c07c70b9e342f800f58522eb3.tar.xz
better para_Rule implementation for "man" backend, using TROFF's built-in
line-drawing function. [originally from svn r6648]
-rw-r--r--bk_man.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bk_man.c b/bk_man.c
index 553b2dd..14fc295 100644
--- 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: