summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-10-20 15:50:24 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-10-20 15:50:24 +0000
commit2b4aeafde92b2ab4a20470a50b2f77a0325611fe (patch)
tree1b1ea07478196650aa428334049b4188aa9dece6 /mdoc.c
parent0284beff01aa6cf1819c49e16dde13c3eb602990 (diff)
downloadmandoc-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc.c b/mdoc.c
index cdaff456..02144ca0 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -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,