[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.193 and 1.197

version 1.193, 2010/10/10 09:59:48 version 1.197, 2010/12/11 14:40:51
Line 319  print_mdoc_node(DECL_ARGS)
Line 319  print_mdoc_node(DECL_ARGS)
         /*          /*
          * Keeps only work until the end of a line.  If a keep was           * Keeps only work until the end of a line.  If a keep was
          * invoked in a prior line, revert it to PREKEEP.           * invoked in a prior line, revert it to PREKEEP.
            *
            * Also let SYNPRETTY sections behave as if they were wrapped
            * in a `Bk' block.
          */           */
   
         if (TERMP_KEEP & p->flags) {          if (TERMP_KEEP & p->flags || MDOC_SYNPRETTY & n->flags) {
                 if (n->prev && n->prev->line != n->line) {                  if (n->prev && n->prev->line != n->line) {
                         p->flags &= ~TERMP_KEEP;                          p->flags &= ~TERMP_KEEP;
                         p->flags |= TERMP_PREKEEP;                          p->flags |= TERMP_PREKEEP;
Line 333  print_mdoc_node(DECL_ARGS)
Line 336  print_mdoc_node(DECL_ARGS)
                 }                  }
         }          }
   
           /*
            * Since SYNPRETTY sections aren't "turned off" with `Ek',
            * we have to intuit whether we should disable formatting.
            */
   
           if ( ! (MDOC_SYNPRETTY & n->flags) &&
               ((n->prev   && MDOC_SYNPRETTY & n->prev->flags) ||
                (n->parent && MDOC_SYNPRETTY & n->parent->flags)))
                   p->flags &= ~(TERMP_KEEP | TERMP_PREKEEP);
   
         if (chld && n->child)          if (chld && n->child)
                 print_mdoc_nodelist(p, &npair, m, n->child);                  print_mdoc_nodelist(p, &npair, m, n->child);
   
Line 1592  termp_bd_pre(DECL_ARGS)
Line 1605  termp_bd_pre(DECL_ARGS)
                         /* FALLTHROUGH */                          /* FALLTHROUGH */
                 case (MDOC_Bl):                  case (MDOC_Bl):
                         /* FALLTHROUGH */                          /* FALLTHROUGH */
                   case (MDOC_D1):
                           /* FALLTHROUGH */
                   case (MDOC_Dl):
                           /* FALLTHROUGH */
                 case (MDOC_Lp):                  case (MDOC_Lp):
                         /* FALLTHROUGH */                          /* FALLTHROUGH */
                 case (MDOC_Pp):                  case (MDOC_Pp):
Line 1657  termp_xx_pre(DECL_ARGS)
Line 1674  termp_xx_pre(DECL_ARGS)
         pp = NULL;          pp = NULL;
         switch (n->tok) {          switch (n->tok) {
         case (MDOC_Bsx):          case (MDOC_Bsx):
                 pp = "BSDI BSD/OS";                  pp = "BSD/OS";
                 break;                  break;
         case (MDOC_Dx):          case (MDOC_Dx):
                 pp = "DragonFly";                  pp = "DragonFly";
Line 2076  termp_lk_pre(DECL_ARGS)
Line 2093  termp_lk_pre(DECL_ARGS)
   
         nn = sv = n->child;          nn = sv = n->child;
   
         if (NULL == nn->next)          if (NULL == nn || NULL == nn->next)
                 return(1);                  return(1);
   
         for (nn = nn->next; nn; nn = nn->next)          for (nn = nn->next; nn; nn = nn->next)

Legend:
Removed from v.1.193  
changed lines
  Added in v.1.197

CVSweb