[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.241 and 1.242

version 1.241, 2012/07/09 23:53:36 version 1.242, 2012/07/10 14:38:51
Line 727  termp_it_pre(DECL_ARGS)
Line 727  termp_it_pre(DECL_ARGS)
         case (LIST_dash):          case (LIST_dash):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case (LIST_hyphen):          case (LIST_hyphen):
                 if (width < term_len(p, 4))                  /* FALLTHROUGH */
                         width = term_len(p, 4);  
                 break;  
         case (LIST_enum):          case (LIST_enum):
                 if (width < term_len(p, 5))                  if (width < term_len(p, 2))
                         width = term_len(p, 5);                          width = term_len(p, 2);
                 break;                  break;
         case (LIST_hang):          case (LIST_hang):
                 if (0 == width)                  if (0 == width)
Line 787  termp_it_pre(DECL_ARGS)
Line 785  termp_it_pre(DECL_ARGS)
          */           */
   
         switch (type) {          switch (type) {
           case (LIST_enum):
                   /*
                    * Weird special case.
                    * Very narrow enum lists actually hang.
                    */
                   if (width == term_len(p, 2))
                           p->flags |= TERMP_HANG;
                   /* FALLTHROUGH */
         case (LIST_bullet):          case (LIST_bullet):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case (LIST_dash):          case (LIST_dash):
                 /* FALLTHROUGH */  
         case (LIST_enum):  
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case (LIST_hyphen):          case (LIST_hyphen):
                 if (MDOC_HEAD == n->type)                  if (MDOC_HEAD == n->type)

Legend:
Removed from v.1.241  
changed lines
  Added in v.1.242

CVSweb