diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-31 16:52:39 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-31 16:52:39 +0000 |
commit | 1977034f28d32faa3922d64ddb114452ff49dbc2 (patch) | |
tree | 737a5c2784e60ef61cc47c4eb1e183d3f5722c04 /main.c | |
parent | a496c49929452bb18c638b61351373fd96a2515b (diff) | |
download | mandoc-1977034f28d32faa3922d64ddb114452ff49dbc2.tar.gz |
When showing more than one formatted manual page, insert horizontal lines
between pages. Suggested by Theo Buehler <theo at math dot ethz dot ch>.
Even in UTF-8 output mode, do not use fancy line drawing characters such
that you can easily use /^--- to skip to the next manual in your pager.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -447,7 +447,9 @@ main(int argc, char *argv[]) if (MANDOCLEVEL_OK != rc && curp.wstop) break; - argc--; + + if (--argc && curp.outtype <= OUTT_UTF8) + ascii_sepline(curp.outdata); } if (curp.outfree) @@ -635,6 +637,8 @@ passthrough(const char *file, int fd, int synopsis_only) ssize_t nw; int print; + fflush(stdout); + if ((stream = fdopen(fd, "r")) == NULL) { close(fd); syscall = "fdopen"; |