[BACK]Return to mdoc_argv.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mdoc_argv.c between version 1.109 and 1.110

version 1.109, 2016/08/28 16:15:12 version 1.110, 2017/03/03 15:05:48
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2012, 2014-2017 Ingo Schwarze <schwarze@openbsd.org>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 424  mdoc_args(struct roff_man *mdoc, int line, int *pos,
Line 424  mdoc_args(struct roff_man *mdoc, int line, int *pos,
         if (v == NULL)          if (v == NULL)
                 v = &v_local;                  v = &v_local;
         fl = tok == TOKEN_NONE ? ARGSFL_NONE : mdocargs[tok].flags;          fl = tok == TOKEN_NONE ? ARGSFL_NONE : mdocargs[tok].flags;
         if (tok != MDOC_It)  
                 return args(mdoc, line, pos, buf, fl, v);  
   
         /*          /*
          * We know that we're in an `It', so it's reasonable to expect           * We know that we're in an `It', so it's reasonable to expect
Line 434  mdoc_args(struct roff_man *mdoc, int line, int *pos,
Line 432  mdoc_args(struct roff_man *mdoc, int line, int *pos,
          * safe fall-back into the default behaviour.           * safe fall-back into the default behaviour.
          */           */
   
         for (n = mdoc->last; n; n = n->parent)          if (tok == MDOC_It) {
                 if (MDOC_Bl == n->tok)                  for (n = mdoc->last; n != NULL; n = n->parent) {
                         if (LIST_column == n->norm->Bl.type) {                          if (n->tok != MDOC_Bl)
                                   continue;
                           if (n->norm->Bl.type == LIST_column)
                                 fl = ARGSFL_TABSEP;                                  fl = ARGSFL_TABSEP;
                                 break;                          break;
                         }                  }
           }
   
         return args(mdoc, line, pos, buf, fl, v);          return args(mdoc, line, pos, buf, fl, v);
 }  }

Legend:
Removed from v.1.109  
changed lines
  Added in v.1.110

CVSweb