diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2020-03-19 12:21:37 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2020-03-19 12:21:37 +0000 |
commit | adfe861feea336544648d5ca761511a928c2d564 (patch) | |
tree | f16eaacbf25d8fdcae9c83c58270b790258632a1 | |
parent | cbd66f9b4ea3a04b5f24ff52b4c7e425468a202b (diff) | |
download | mandoc-adfe861feea336544648d5ca761511a928c2d564.tar.gz |
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 | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: |