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

Diff for /mandoc/mdoc_man.c between version 1.92 and 1.93

version 1.92, 2015/04/18 16:06:40 version 1.93, 2015/04/18 17:53:21
Line 547  man_man(void *arg, const struct roff_man *man)
Line 547  man_man(void *arg, const struct roff_man *man)
 void  void
 man_mdoc(void *arg, const struct roff_man *mdoc)  man_mdoc(void *arg, const struct roff_man *mdoc)
 {  {
         const struct roff_meta *meta;  
         struct roff_node *n;          struct roff_node *n;
   
         meta = mdoc_meta(mdoc);  
         n = mdoc_node(mdoc)->child;  
   
         printf(".TH \"%s\" \"%s\" \"%s\" \"%s\" \"%s\"\n",          printf(".TH \"%s\" \"%s\" \"%s\" \"%s\" \"%s\"\n",
             meta->title,              mdoc->meta.title,
             (meta->msec == NULL ? "" : meta->msec),              (mdoc->meta.msec == NULL ? "" : mdoc->meta.msec),
             meta->date, meta->os, meta->vol);              mdoc->meta.date, mdoc->meta.os, mdoc->meta.vol);
   
         /* Disable hyphenation and if nroff, disable justification. */          /* Disable hyphenation and if nroff, disable justification. */
         printf(".nh\n.if n .ad l");          printf(".nh\n.if n .ad l");
Line 567  man_mdoc(void *arg, const struct roff_man *mdoc)
Line 563  man_mdoc(void *arg, const struct roff_man *mdoc)
                 fontqueue.head = fontqueue.tail = mandoc_malloc(8);                  fontqueue.head = fontqueue.tail = mandoc_malloc(8);
                 *fontqueue.tail = 'R';                  *fontqueue.tail = 'R';
         }          }
         while (n != NULL) {          for (n = mdoc->first->child; n != NULL; n = n->next)
                 print_node(meta, n);                  print_node(&mdoc->meta, n);
                 n = n->next;  
         }  
         putchar('\n');          putchar('\n');
 }  }
   

Legend:
Removed from v.1.92  
changed lines
  Added in v.1.93

CVSweb