From 40d86894cf83a9f39b0d85e391c7c16574971889 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 29 Mar 2010 04:52:14 +0000 Subject: Initial step in fixing badness reported by Sascha Wildner (wip). --- man.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'man.c') diff --git a/man.c b/man.c index a3ed74b5..dff5adc9 100644 --- a/man.c +++ b/man.c @@ -478,14 +478,15 @@ macrowarn(struct man *m, int ln, const char *buf) int man_pmacro(struct man *m, int ln, char *buf) { - int i, j, ppos, fl; + int i, j, ppos; enum mant tok; char mac[5]; struct man_node *n; /* Comments and empties are quickly ignored. */ - fl = m->flags; + if (MAN_BLINE & m->flags) + m->flags |= MAN_BPLINE; if ('\0' == buf[1]) return(1); @@ -601,10 +602,11 @@ out: * family) within BLINE or ELINE systems. This is annoying. */ - if ( ! (MAN_BLINE & fl)) { + if ( ! (MAN_BPLINE & m->flags)) { m->flags &= ~MAN_ILINE; return(1); } + m->flags &= ~MAN_BPLINE; /* * If we're in a block scope, then allow this macro to slip by -- cgit