=================================================================== RCS file: /cvs/mandoc/roff.c,v retrieving revision 1.343 retrieving revision 1.345 diff -u -p -r1.343 -r1.345 --- mandoc/roff.c 2018/11/26 17:44:34 1.343 +++ mandoc/roff.c 2018/12/12 21:54:35 1.345 @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.343 2018/11/26 17:44:34 schwarze Exp $ */ +/* $Id: roff.c,v 1.345 2018/12/12 21:54:35 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze @@ -28,10 +28,11 @@ #include #include -#include "mandoc.h" #include "mandoc_aux.h" #include "mandoc_ohash.h" +#include "mandoc.h" #include "roff.h" +#include "tbl.h" #include "libmandoc.h" #include "roff_int.h" #include "libroff.h" @@ -1064,6 +1065,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