=================================================================== RCS file: /cvs/mandoc/roff.c,v retrieving revision 1.343 retrieving revision 1.344 diff -u -p -r1.343 -r1.344 --- mandoc/roff.c 2018/11/26 17:44:34 1.343 +++ mandoc/roff.c 2018/12/04 02:53:51 1.344 @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.343 2018/11/26 17:44:34 schwarze Exp $ */ +/* $Id: roff.c,v 1.344 2018/12/04 02:53:51 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze @@ -1064,6 +1064,14 @@ roff_node_unlink(struct roff_man *man, struct roff_nod } if (man->first == n) man->first = NULL; +} + +void +roff_node_relink(struct roff_man *man, struct roff_node *n) +{ + roff_node_unlink(man, n); + n->prev = n->next = NULL; + roff_node_append(man, n); } void