diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-03-29 04:52:14 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-03-29 04:52:14 +0000 |
commit | 17fb05b577517a04553bc0c0a3301f3113889621 (patch) | |
tree | 1f407e5401c453e90e704ded2eb538c3a0a43601 /man.c | |
parent | 6d187d884b79f4f01b272770304b8c5ecac272f9 (diff) | |
download | mandoc-17fb05b577517a04553bc0c0a3301f3113889621.tar.gz mandoc-17fb05b577517a04553bc0c0a3301f3113889621.tar.zst mandoc-17fb05b577517a04553bc0c0a3301f3113889621.zip |
Initial step in fixing badness reported by Sascha Wildner (wip).
Diffstat (limited to 'man.c')
-rw-r--r-- | man.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.57 2010/03/27 10:26:39 kristaps Exp $ */ +/* $Id: man.c,v 1.58 2010/03/29 04:52:14 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -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 |