[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.57 and 1.58

version 1.57, 2009/07/21 15:54:18 version 1.58, 2009/07/23 08:36:32
Line 782  termp_it_pre(DECL_ARGS)
Line 782  termp_it_pre(DECL_ARGS)
         case (MDOC_Column):          case (MDOC_Column):
                 if (MDOC_BODY == node->type)                  if (MDOC_BODY == node->type)
                         break;                          break;
                 for (i = 0, n = node->prev; n; n = n->prev, i++)                  /*
                    * Work around groff's column handling.  The offset is
                    * equal to the sum of all widths leading to the current
                    * column (plus the -offset value).  If this column
                    * exceeds the stated number of columns, the width is
                    * set as 0, else it's the stated column width (later
                    * the 0 will be adjusted to default 10 or, if in the
                    * last column case, set to stretch to the margin).
                    */
                   for (i = 0, n = node->prev; n && n &&
                                   i < (int)bl->args[vals[2]].argv->sz;
                                   n = n->prev, i++)
                         offset += arg_width                          offset += arg_width
                                 (&bl->args->argv[vals[2]], i);                                  (&bl->args->argv[vals[2]], i);
                 assert(i < (int)bl->args->argv[vals[2]].sz);  
                 width = arg_width(&bl->args->argv[vals[2]], i);                  /* Whether exceeds maximum column. */
                   if (i < (int)bl->args[vals[2]].argv->sz)
                           width = arg_width(&bl->args->argv[vals[2]], i);
                   else
                           width = 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;

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58

CVSweb