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

version 1.196, 2010/12/05 15:37:30 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 332  print_mdoc_node(DECL_ARGS)
Line 335  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);

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

CVSweb