diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-02-02 21:40:45 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-02-02 21:40:45 +0000 |
commit | fe1e1c9e6ff55e0dc447b3cbe2c90acec57abb94 (patch) | |
tree | 41487390a8b9f98c9f16c129452bb52b69fae3ec /mdoc_term.c | |
parent | 4d5fae7359175bce01187d32473e257174341f84 (diff) | |
download | mandoc-fe1e1c9e6ff55e0dc447b3cbe2c90acec57abb94.tar.gz |
If `Ns' is specified on its own line, it should be ignored. This is
shitty groff behaviour. Do the same, but raise a warning to this
effect. This from a TODO noted by schwarze@.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index 942753b0..bad775e9 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1151,7 +1151,8 @@ static int termp_ns_pre(DECL_ARGS) { - p->flags |= TERMP_NOSPACE; + if ( ! (MDOC_LINE & n->flags)) + p->flags |= TERMP_NOSPACE; return(1); } |