summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mdoc.c b/mdoc.c
index f2f5f1cf..59c54b83 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -380,6 +380,15 @@ node_alloc(struct mdoc *m, int line, int pos,
if (SEC_SYNOPSIS == p->sec)
p->flags |= MDOC_SYNPRETTY;
+ /* Register analysis. */
+
+ if (m->regs->regs[(int)REG_nS].set) {
+ if (m->regs->regs[(int)REG_nS].v.u)
+ p->flags |= MDOC_SYNPRETTY;
+ else
+ p->flags &= ~MDOC_SYNPRETTY;
+ }
+
return(p);
}