diff options
Diffstat (limited to 'mdoc_man.c')
| -rw-r--r-- | mdoc_man.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mdoc_man.c b/mdoc_man.c index d4fd88304fb0..5438b2ba5941 100644 --- a/mdoc_man.c +++ b/mdoc_man.c @@ -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 <schwarze@openbsd.org> + * Copyright (c) 2011-2021, 2025 Ingo Schwarze <schwarze@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -796,6 +796,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); nnn = nn == NULL ? NULL : roff_node_next(nn); |
