=================================================================== RCS file: /cvs/mandoc/mdoc_term.c,v retrieving revision 1.303 retrieving revision 1.305 diff -u -p -r1.303 -r1.305 --- mandoc/mdoc_term.c 2015/01/23 14:21:01 1.303 +++ mandoc/mdoc_term.c 2015/01/31 00:12:41 1.305 @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.303 2015/01/23 14:21:01 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.305 2015/01/31 00:12:41 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2012-2015 Ingo Schwarze @@ -291,9 +291,10 @@ static void print_mdoc_nodelist(DECL_ARGS) { - print_mdoc_node(p, pair, meta, n); - if (n->next) - print_mdoc_nodelist(p, pair, meta, n->next); + while (n != NULL) { + print_mdoc_node(p, pair, meta, n); + n = n->next; + } } static void @@ -306,7 +307,7 @@ print_mdoc_node(DECL_ARGS) chld = 1; offset = p->offset; rmargin = p->rmargin; - n->prev_font = term_fontq(p); + n->prev_font = p->fonti; memset(&npair, 0, sizeof(struct termpair)); npair.ppair = pair;