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

Diff for /mandoc/mdoc_term.c between version 1.336 and 1.337

version 1.336, 2016/11/08 16:38:21 version 1.337, 2017/01/10 12:53:07
Line 285  terminal_mdoc(void *arg, const struct roff_man *mdoc)
Line 285  terminal_mdoc(void *arg, const struct roff_man *mdoc)
                         p->defindent = 5;                          p->defindent = 5;
                 term_begin(p, print_mdoc_head, print_mdoc_foot,                  term_begin(p, print_mdoc_head, print_mdoc_foot,
                     &mdoc->meta);                      &mdoc->meta);
                   while (n != NULL && n->flags & NODE_NOPRT)
                           n = n->next;
                 if (n != NULL) {                  if (n != NULL) {
                         if (n->tok != MDOC_Sh)                          if (n->tok != MDOC_Sh)
                                 term_vspace(p);                                  term_vspace(p);
Line 311  print_mdoc_node(DECL_ARGS)
Line 313  print_mdoc_node(DECL_ARGS)
         struct termpair  npair;          struct termpair  npair;
         size_t           offset, rmargin;          size_t           offset, rmargin;
   
           if (n->flags & NODE_NOPRT)
                   return;
   
         chld = 1;          chld = 1;
         offset = p->offset;          offset = p->offset;
         rmargin = p->rmargin;          rmargin = p->rmargin;
Line 564  print_bvspace(struct termp *p,
Line 569  print_bvspace(struct termp *p,
         /* Do not vspace directly after Ss/Sh. */          /* Do not vspace directly after Ss/Sh. */
   
         nn = n;          nn = n;
           while (nn->prev != NULL && nn->prev->flags & NODE_NOPRT)
                   nn = nn->prev;
         while (nn->prev == NULL) {          while (nn->prev == NULL) {
                 do {                  do {
                         nn = nn->parent;                          nn = nn->parent;
Line 1718  termp_pf_post(DECL_ARGS)
Line 1725  termp_pf_post(DECL_ARGS)
 static int  static int
 termp_ss_pre(DECL_ARGS)  termp_ss_pre(DECL_ARGS)
 {  {
           struct roff_node *nn;
   
         switch (n->type) {          switch (n->type) {
         case ROFFT_BLOCK:          case ROFFT_BLOCK:
                 term_newln(p);                  term_newln(p);
                 if (n->prev)                  for (nn = n->prev; nn != NULL; nn = nn->prev)
                           if ((nn->flags & NODE_NOPRT) == 0)
                                   break;
                   if (nn != NULL)
                         term_vspace(p);                          term_vspace(p);
                 break;                  break;
         case ROFFT_HEAD:          case ROFFT_HEAD:

Legend:
Removed from v.1.336  
changed lines
  Added in v.1.337

CVSweb