From 1ff425c7d1701dc250f29a472a5151a5681f208f Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 19 Mar 2020 12:21:37 +0000 Subject: 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 on bugs@. --- main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 8c3ded9b..4228602e 100644 --- a/main.c +++ b/main.c @@ -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 * Copyright (c) 2008-2012 Kristaps Dzonsons @@ -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: -- cgit v1.2.3