diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-20 15:50:24 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-20 15:50:24 +0000 |
commit | 2b4aeafde92b2ab4a20470a50b2f77a0325611fe (patch) | |
tree | 1b1ea07478196650aa428334049b4188aa9dece6 /mdoc.c | |
parent | 0284beff01aa6cf1819c49e16dde13c3eb602990 (diff) | |
download | mandoc-2b4aeafde92b2ab4a20470a50b2f77a0325611fe.tar.gz |
correct the spacing after in-line equations
that start at the beginning of an input line
but end before the end of an input line
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -238,7 +238,8 @@ int mdoc_parseln(struct mdoc *mdoc, int ln, char *buf, int offs) { - mdoc->flags |= MDOC_NEWLINE; + if (mdoc->last->type != MDOC_EQN || ln > mdoc->last->line) + mdoc->flags |= MDOC_NEWLINE; /* * Let the roff nS register switch SYNOPSIS mode early, |