[BACK]Return to main.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/main.c between version 1.345 and 1.347

version 1.345, 2020/03/13 15:32:28 version 1.347, 2020/03/28 16:18:43
Line 609  main(int argc, char *argv[])
Line 609  main(int argc, char *argv[])
                 (void)fchdir(startdir);                  (void)fchdir(startdir);
                 close(startdir);                  close(startdir);
         }          }
           term_tag_finish();
         if (outst.outdata != NULL) {          if (outst.outdata != NULL) {
                 switch (outst.outtype) {                  switch (outst.outtype) {
                 case OUTT_HTML:                  case OUTT_HTML:
Line 617  main(int argc, char *argv[])
Line 618  main(int argc, char *argv[])
                 case OUTT_UTF8:                  case OUTT_UTF8:
                 case OUTT_LOCALE:                  case OUTT_LOCALE:
                 case OUTT_ASCII:                  case OUTT_ASCII:
                         term_tag_finish();  
                         ascii_free(outst.outdata);                          ascii_free(outst.outdata);
                         break;                          break;
                 case OUTT_PDF:                  case OUTT_PDF:
Line 831  process_onefile(struct mparse *mp, struct manpage *res
Line 831  process_onefile(struct mparse *mp, struct manpage *res
         } else          } else
                 fd = STDIN_FILENO;                  fd = STDIN_FILENO;
   
         if (outst->outtype <= OUTT_UTF8) {          if (outst->use_pager) {
                 if (outst->use_pager) {                  outst->use_pager = 0;
                         outst->use_pager = 0;                  outst->tag_files = term_tag_init(conf->output.tag);
                         outst->tag_files = term_tag_init(conf->output.tag);          }
                 }          if (outst->had_output && outst->outtype <= OUTT_UTF8) {
                 if (outst->had_output) {                  if (outst->outdata == NULL)
                         if (outst->outdata == NULL)                          outdata_alloc(outst, &conf->output);
                                 outdata_alloc(outst, &conf->output);                  terminal_sepline(outst->outdata);
                         terminal_sepline(outst->outdata);  
                 }  
         }          }
   
         if (resp->form == FORM_SRC)          if (resp->form == FORM_SRC)

Legend:
Removed from v.1.345  
changed lines
  Added in v.1.347

CVSweb