diff options
author | 2020-03-19 12:21:37 +0000 | |
---|---|---|
committer | 2020-03-19 12:21:37 +0000 | |
commit | 1ff425c7d1701dc250f29a472a5151a5681f208f (patch) | |
tree | 95cb263546e62ff7c3b27cc7a0be09256d95ce06 | |
parent | a66db6e540049cef813d1e4a20aa32c3dc755dc6 (diff) | |
download | mandoc-1ff425c7d1701dc250f29a472a5151a5681f208f.tar.gz mandoc-1ff425c7d1701dc250f29a472a5151a5681f208f.tar.zst mandoc-1ff425c7d1701dc250f29a472a5151a5681f208f.zip |
The tag file always needs to be closed before starting the pager,
even when no output formatter was allocated because all pages
shown were preformatted. Regression in previous reported
by <Andreas dot Kahari at abc dot se> on bugs@.
-rw-r--r-- | main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.345 2020/03/13 15:32:28 schwarze Exp $ */ +/* $Id: main.c,v 1.346 2020/03/19 12:21:37 schwarze Exp $ */ /* * Copyright (c) 2010-2012, 2014-2020 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> @@ -609,6 +609,8 @@ main(int argc, char *argv[]) (void)fchdir(startdir); close(startdir); } + if (outst.outtype <= OUTT_UTF8) + term_tag_finish(); if (outst.outdata != NULL) { switch (outst.outtype) { case OUTT_HTML: @@ -617,7 +619,6 @@ main(int argc, char *argv[]) case OUTT_UTF8: case OUTT_LOCALE: case OUTT_ASCII: - term_tag_finish(); ascii_free(outst.outdata); break; case OUTT_PDF: |