=================================================================== RCS file: /cvs/mandoc/main.c,v retrieving revision 1.209 retrieving revision 1.210 diff -u -p -r1.209 -r1.210 --- mandoc/main.c 2014/12/21 14:49:28 1.209 +++ mandoc/main.c 2014/12/31 16:52:39 1.210 @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.209 2014/12/21 14:49:28 schwarze Exp $ */ +/* $Id: main.c,v 1.210 2014/12/31 16:52:39 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010, 2011, 2012, 2014 Ingo Schwarze @@ -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) @@ -634,6 +636,8 @@ passthrough(const char *file, int fd, int synopsis_onl size_t len, off; ssize_t nw; int print; + + fflush(stdout); if ((stream = fdopen(fd, "r")) == NULL) { close(fd);