diff options
author | 2011-02-02 21:40:45 +0000 | |
---|---|---|
committer | 2011-02-02 21:40:45 +0000 | |
commit | e9d24264e27dc7cfcd1fc87cd2e50cc710121ed5 (patch) | |
tree | e45a33bb7cba55f4a325e4e49cd0380a16a0f11a /mdoc_term.c | |
parent | 17d423d4ef829d89f4e0673f7324d66e126702f0 (diff) | |
download | mandoc-e9d24264e27dc7cfcd1fc87cd2e50cc710121ed5.tar.gz mandoc-e9d24264e27dc7cfcd1fc87cd2e50cc710121ed5.tar.zst mandoc-e9d24264e27dc7cfcd1fc87cd2e50cc710121ed5.zip |
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 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index 6aa3e8b5..d9ecbbf0 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.214 2011/01/25 16:20:24 kristaps Exp $ */ +/* $Id: mdoc_term.c,v 1.215 2011/02/02 21:40:45 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org> @@ -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); } |