=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mdoc_term.c,v retrieving revision 1.160 retrieving revision 1.161 diff -c -r1.160 -r1.161 *** src/usr.bin/mandoc/mdoc_term.c 2013/12/25 21:24:03 1.160 --- src/usr.bin/mandoc/mdoc_term.c 2014/02/16 12:30:51 1.161 *************** *** 1,7 **** ! /* $Id: mdoc_term.c,v 1.160 2013/12/25 21:24:03 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons ! * Copyright (c) 2010, 2012, 2013 Ingo Schwarze * Copyright (c) 2013 Franco Fichtner * * Permission to use, copy, modify, and distribute this software for any --- 1,7 ---- ! /* $Id: mdoc_term.c,v 1.161 2014/02/16 12:30:51 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons ! * Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze * Copyright (c) 2013 Franco Fichtner * * Permission to use, copy, modify, and distribute this software for any *************** *** 869,876 **** assert(width); if (MDOC_HEAD == n->type) p->rmargin = p->offset + width; ! else p->offset += width; break; case (LIST_column): assert(width); --- 869,879 ---- assert(width); if (MDOC_HEAD == n->type) p->rmargin = p->offset + width; ! else { p->offset += width; + if (p->rmargin < p->offset) + p->rmargin = p->offset; + } break; case (LIST_column): assert(width);