source@mandoc.bsd.lv
 help / color / Atom feed
* mandoc: The tag file always needs to be closed before starting the 
@ 2020-03-19 12:22 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2020-03-19 12:22 UTC (permalink / raw)
  To: source

Log Message:
-----------
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@.

Modified Files:
--------------
    mandoc:
        main.c

Revision Data
-------------
Index: main.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/main.c,v
retrieving revision 1.345
retrieving revision 1.346
diff -Lmain.c -Lmain.c -u -p -r1.345 -r1.346
--- main.c
+++ main.c
@@ -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:
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-19 12:22 mandoc: The tag file always needs to be closed before starting the schwarze

source@mandoc.bsd.lv

Archives are clonable: git clone --mirror http://inbox.vuxu.org/mandoc-source

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.mandoc.source


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git