* mandoc: Even though the HTML, man, markdown, PDF, PostScript, and tree
@ 2020-03-28 16:19 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2020-03-28 16:19 UTC (permalink / raw)
To: source
Log Message:
-----------
Even though the HTML, man, markdown, PDF, PostScript, and tree formatters
never write a ctags(1) file, using a pager still requires writing the
main output file and passing the file name to the pager.
Recent regression mentioned on IRC and reported by kn@.
Modified Files:
--------------
mandoc:
main.c
Revision Data
-------------
Index: main.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/main.c,v
retrieving revision 1.346
retrieving revision 1.347
diff -Lmain.c -Lmain.c -u -p -r1.346 -r1.347
--- main.c
+++ main.c
@@ -609,8 +609,7 @@ main(int argc, char *argv[])
(void)fchdir(startdir);
close(startdir);
}
- if (outst.outtype <= OUTT_UTF8)
- term_tag_finish();
+ term_tag_finish();
if (outst.outdata != NULL) {
switch (outst.outtype) {
case OUTT_HTML:
@@ -832,16 +831,14 @@ process_onefile(struct mparse *mp, struc
} else
fd = STDIN_FILENO;
- if (outst->outtype <= OUTT_UTF8) {
- if (outst->use_pager) {
- outst->use_pager = 0;
- outst->tag_files = term_tag_init(conf->output.tag);
- }
- if (outst->had_output) {
- if (outst->outdata == NULL)
- outdata_alloc(outst, &conf->output);
- terminal_sepline(outst->outdata);
- }
+ if (outst->use_pager) {
+ outst->use_pager = 0;
+ outst->tag_files = term_tag_init(conf->output.tag);
+ }
+ if (outst->had_output && outst->outtype <= OUTT_UTF8) {
+ if (outst->outdata == NULL)
+ outdata_alloc(outst, &conf->output);
+ terminal_sepline(outst->outdata);
}
if (resp->form == FORM_SRC)
--
To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-28 16:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-28 16:19 mandoc: Even though the HTML, man, markdown, PDF, PostScript, and tree schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).