=================================================================== RCS file: /cvs/mandoc/tbl_layout.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -p -r1.24 -r1.25 --- mandoc/tbl_layout.c 2014/03/23 11:25:26 1.24 +++ mandoc/tbl_layout.c 2014/03/28 23:26:25 1.25 @@ -1,7 +1,7 @@ -/* $Id: tbl_layout.c,v 1.24 2014/03/23 11:25:26 schwarze Exp $ */ +/* $Id: tbl_layout.c,v 1.25 2014/03/28 23:26:25 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons - * Copyright (c) 2012 Ingo Schwarze + * Copyright (c) 2012, 2014 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -100,6 +100,8 @@ mod: case (','): /* FALLTHROUGH */ case ('.'): + /* FALLTHROUGH */ + case ('|'): return(1); default: break; @@ -217,6 +219,13 @@ cell(struct tbl_node *tbl, struct tbl_row *rp, vert++; while (' ' == p[*pos]) (*pos)++; + + /* Handle trailing vertical lines */ + + if ('.' == p[*pos] || '\0' == p[*pos]) { + rp->vert = vert; + return(1); + } /* Parse the column position (`c', `l', `r', ...). */