diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2012-07-29 16:31:45 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2012-07-29 16:31:45 +0000 |
commit | 2f8c1cea3ab557bdcfc2db8904c166a161882ddc (patch) | |
tree | acf84cb3d78026119888daab9f1fe6aa3403bb7c /usr.bin | |
parent | 323c82807a8225799aca84ee464a0dabb8cb31e9 (diff) |
Disable hyphenation and, for nroff, disable justification which is
consistent with how mdoc behaves (and produces more readable manuals).
OK schwarze@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mandoc/mdoc_man.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_man.c b/usr.bin/mandoc/mdoc_man.c index 927d3aecd4a..4e9bef5d9f8 100644 --- a/usr.bin/mandoc/mdoc_man.c +++ b/usr.bin/mandoc/mdoc_man.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_man.c,v 1.40 2012/07/29 16:30:52 millert Exp $ */ +/* $Id: mdoc_man.c,v 1.41 2012/07/29 16:31:44 millert Exp $ */ /* * Copyright (c) 2011, 2012 Ingo Schwarze <schwarze@openbsd.org> * @@ -471,9 +471,12 @@ man_mdoc(void *arg, const struct mdoc *mdoc) m = mdoc_meta(mdoc); n = mdoc_node(mdoc); - printf(".TH \"%s\" \"%s\" \"%s\" \"%s\" \"%s\"", + printf(".TH \"%s\" \"%s\" \"%s\" \"%s\" \"%s\"\n", m->title, m->msec, m->date, m->os, m->vol); + /* Disable hyphenation and if nroff, disable justification. */ + printf(".nh\n.if n .ad l"); + outflags = MMAN_nl | MMAN_Sm; if (0 == fontqueue.size) { fontqueue.size = 8; |