From 1977034f28d32faa3922d64ddb114452ff49dbc2 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 31 Dec 2014 16:52:39 +0000 Subject: When showing more than one formatted manual page, insert horizontal lines between pages. Suggested by Theo Buehler . 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. --- main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 6d4dd83a..86d70b67 100644 --- a/main.c +++ b/main.c @@ -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"; -- cgit