[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.16 and 1.19

version 1.16, 2009/06/22 12:04:05 version 1.19, 2009/07/04 11:04:46
Line 604  arg_offset(const struct mdoc_argv *arg)
Line 604  arg_offset(const struct mdoc_argv *arg)
   
         assert(*arg->value);          assert(*arg->value);
         if (0 == strcmp(*arg->value, "left"))          if (0 == strcmp(*arg->value, "left"))
                 return(INDENT - 1);                  return(0);
         if (0 == strcmp(*arg->value, "indent"))          if (0 == strcmp(*arg->value, "indent"))
                 return(INDENT + 1);                  return(INDENT + 1);
         if (0 == strcmp(*arg->value, "indent-two"))          if (0 == strcmp(*arg->value, "indent-two"))
Line 761  termp_it_pre(DECL_ARGS)
Line 761  termp_it_pre(DECL_ARGS)
                 if (vals[0] >= 0)                  if (vals[0] >= 0)
                         width = arg_width(&bl->args->argv[vals[0]], 0);                          width = arg_width(&bl->args->argv[vals[0]], 0);
                 if (vals[1] >= 0)                  if (vals[1] >= 0)
                         offset = arg_offset(&bl->args->argv[vals[1]]);                          offset += arg_offset(&bl->args->argv[vals[1]]);
                 break;                  break;
         }          }
   
Line 776  termp_it_pre(DECL_ARGS)
Line 776  termp_it_pre(DECL_ARGS)
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case (MDOC_Dash):          case (MDOC_Dash):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case (MDOC_Enum):  
                 /* FALLTHROUGH */  
         case (MDOC_Hyphen):          case (MDOC_Hyphen):
                 if (width < 4)                  if (width < 4)
                         width = 4;                          width = 4;
                 break;                  break;
           case (MDOC_Enum):
                   if (width < 5)
                           width = 5;
                   break;
         case (MDOC_Tag):          case (MDOC_Tag):
                 if (0 == width)                  if (0 == width)
                         width = 10;                          width = 10;
Line 791  termp_it_pre(DECL_ARGS)
Line 793  termp_it_pre(DECL_ARGS)
         }          }
   
         /*          /*
          * Whitespace control.  Inset bodies need an initial space.           * Whitespace control.  Inset bodies need an initial space,
            * while diagonal bodies need two.
          */           */
   
         switch (type) {          switch (type) {
         case (MDOC_Diag):          case (MDOC_Diag):
                   term_word(p, "\\ ");
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case (MDOC_Inset):          case (MDOC_Inset):
                 if (MDOC_BODY == node->type)                  if (MDOC_BODY == node->type)
Line 1305  termp_lb_pre(DECL_ARGS)
Line 1309  termp_lb_pre(DECL_ARGS)
         const char      *lb;          const char      *lb;
   
         assert(node->child && MDOC_TEXT == node->child->type);          assert(node->child && MDOC_TEXT == node->child->type);
         if ((lb = mdoc_a2lib(node->child->string))) {          lb = mdoc_a2lib(node->child->string);
           if (lb) {
                 term_word(p, lb);                  term_word(p, lb);
                 return(0);                  return(0);
         }          }

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.19

CVSweb