=================================================================== RCS file: /cvs/mandoc/mdoc_man.c,v retrieving revision 1.138 retrieving revision 1.139 diff -u -p -r1.138 -r1.139 --- mandoc/mdoc_man.c 2023/04/28 19:11:04 1.138 +++ mandoc/mdoc_man.c 2025/01/24 22:37:24 1.139 @@ -1,6 +1,6 @@ -/* $Id: mdoc_man.c,v 1.138 2023/04/28 19:11:04 schwarze Exp $ */ +/* $Id: mdoc_man.c,v 1.139 2025/01/24 22:37:24 schwarze Exp $ */ /* - * Copyright (c) 2011-2021 Ingo Schwarze + * Copyright (c) 2011-2021, 2025 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -795,6 +795,9 @@ post_percent(DECL_ARGS) if (mdoc_man_act(n->tok)->pre == pre_em) font_pop(); + + if (n->parent == NULL || n->parent->tok != MDOC_Rs) + return; if ((nn = roff_node_next(n)) != NULL) { np = roff_node_prev(n);