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

Diff for /mandoc/tbl_layout.c between version 1.23 and 1.25

version 1.23, 2012/05/27 17:54:54 version 1.25, 2014/03/28 23:26:25
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) 2012 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2012, 2014 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 19 
Line 19 
 #include "config.h"  #include "config.h"
 #endif  #endif
   
 #include <assert.h>  
 #include <ctype.h>  #include <ctype.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
 #include <time.h>  #include <time.h>
   
 #include "mandoc.h"  #include "mandoc.h"
   #include "mandoc_aux.h"
 #include "libmandoc.h"  #include "libmandoc.h"
 #include "libroff.h"  #include "libroff.h"
   
Line 100  mod:
Line 100  mod:
         case (','):          case (','):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case ('.'):          case ('.'):
                   /* FALLTHROUGH */
           case ('|'):
                 return(1);                  return(1);
         default:          default:
                 break;                  break;
Line 217  cell(struct tbl_node *tbl, struct tbl_row *rp, 
Line 219  cell(struct tbl_node *tbl, struct tbl_row *rp, 
                 vert++;                  vert++;
         while (' ' == p[*pos])          while (' ' == p[*pos])
                 (*pos)++;                  (*pos)++;
   
           /* Handle trailing vertical lines */
   
           if ('.' == p[*pos] || '\0' == p[*pos]) {
                   rp->vert = vert;
                   return(1);
           }
   
         /* Parse the column position (`c', `l', `r', ...). */          /* Parse the column position (`c', `l', `r', ...). */
   

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.25

CVSweb