=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/main.c,v retrieving revision 1.70 retrieving revision 1.71 diff -c -r1.70 -r1.71 *** src/usr.bin/mandoc/main.c 2011/01/24 23:40:12 1.70 --- src/usr.bin/mandoc/main.c 2011/01/25 12:24:26 1.71 *************** *** 1,4 **** ! /* $Id: main.c,v 1.70 2011/01/24 23:40:12 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2011 Ingo Schwarze --- 1,4 ---- ! /* $Id: main.c,v 1.71 2011/01/25 12:24:26 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2011 Ingo Schwarze *************** *** 641,646 **** --- 641,647 ---- static void parsebuf(struct curparse *curp, struct buf blk, int start) { + const struct tbl_span *span; struct buf ln; enum rofferr rr; int i, of, rc; *************** *** 840,850 **** if (ROFF_TBL == rr) { assert(curp->man || curp->mdoc); ! if (curp->man) ! man_addspan(curp->man, roff_span(curp->roff)); ! else ! mdoc_addspan(curp->mdoc, roff_span(curp->roff)); ! } else if (curp->man || curp->mdoc) { rc = curp->man ? man_parseln(curp->man, --- 841,852 ---- if (ROFF_TBL == rr) { assert(curp->man || curp->mdoc); ! while (NULL != (span = roff_span(curp->roff))) { ! if (curp->man) ! man_addspan(curp->man, span); ! else ! mdoc_addspan(curp->mdoc, span); ! } } else if (curp->man || curp->mdoc) { rc = curp->man ? man_parseln(curp->man,