summaryrefslogtreecommitdiffstats
path: root/man.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-03-29 04:52:14 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-03-29 04:52:14 +0000
commit40d86894cf83a9f39b0d85e391c7c16574971889 (patch)
tree670208d3e7101f9294ad5312ae1d25ef3f051886 /man.c
parentf21a38903f3f18b8185649f2a8fda1137ae506cd (diff)
downloadmandoc-40d86894cf83a9f39b0d85e391c7c16574971889.tar.gz
Initial step in fixing badness reported by Sascha Wildner (wip).
Diffstat (limited to 'man.c')
-rw-r--r--man.c8
1 files changed, 5 insertions, 3 deletions
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