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 | 6e74e86e44514ebe15ac91e3d2d8aa05b8fdf34b (patch) | |
tree | 9733b01377c29fa3b76767daf7b1169444642f93 /man.c | |
parent | 9ca091cc5ecb093aa0d5e331700589d10e6f07e5 (diff) | |
download | mandoc-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 'man.c')
-rw-r--r-- | man.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.140 2014/10/20 02:33:06 schwarze Exp $ */ +/* $Id: man.c,v 1.141 2014/10/20 15:50:24 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -119,7 +119,8 @@ int man_parseln(struct man *man, int ln, char *buf, int offs) { - man->flags |= MAN_NEWLINE; + if (man->last->type != MAN_EQN || ln > man->last->line) + man->flags |= MAN_NEWLINE; return (roff_getcontrol(man->roff, buf, &offs) ? man_pmacro(man, ln, buf, offs) : |