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

Diff for /mandoc/tbl_data.c between version 1.51 and 1.52

version 1.51, 2018/12/14 05:18:03 version 1.52, 2019/02/09 16:00:39
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2011, 2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2011,2015,2017,2018,2019 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 248  tbl_data(struct tbl_node *tbl, int ln, const char *p, 
Line 248  tbl_data(struct tbl_node *tbl, int ln, const char *p, 
   
         assert(rp != NULL);          assert(rp != NULL);
   
         if ( ! strcmp(p, "_")) {          if (p[1] == '\0') {
                 sp = newspan(tbl, ln, rp);                  switch (p[0]) {
                 sp->pos = TBL_SPAN_HORIZ;                  case '.':
                 return;                          /*
         } else if ( ! strcmp(p, "=")) {                           * Empty request lines must be handled here
                 sp = newspan(tbl, ln, rp);                           * and cannot be discarded in roff_parseln()
                 sp->pos = TBL_SPAN_DHORIZ;                           * because in the layout section, they
                 return;                           * are significant and end the layout.
                            */
                           return;
                   case '_':
                           sp = newspan(tbl, ln, rp);
                           sp->pos = TBL_SPAN_HORIZ;
                           return;
                   case '=':
                           sp = newspan(tbl, ln, rp);
                           sp->pos = TBL_SPAN_DHORIZ;
                           return;
                   default:
                           break;
                   }
         }          }
   
         /*          /*

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52

CVSweb