aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit6e74e86e44514ebe15ac91e3d2d8aa05b8fdf34b (patch)
tree9733b01377c29fa3b76767daf7b1169444642f93 /mdoc.c
parent9ca091cc5ecb093aa0d5e331700589d10e6f07e5 (diff)
downloadmandoc-6e74e86e44514ebe15ac91e3d2d8aa05b8fdf34b.tar.gz
mandoc-6e74e86e44514ebe15ac91e3d2d8aa05b8fdf34b.tar.zst
mandoc-6e74e86e44514ebe15ac91e3d2d8aa05b8fdf34b.zip
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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc.c b/mdoc.c
index d295aab2..baa98c89 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc.c,v 1.227 2014/10/20 02:33:06 schwarze Exp $ */
+/* $Id: mdoc.c,v 1.228 2014/10/20 15:50:24 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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,