summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2009-10-19 16:51:08 +0000
committerschwarze <schwarze@openbsd.org>2009-10-19 16:51:08 +0000
commitf8628b0f000a92bfbcd0c69a0d15772d8df86578 (patch)
tree9ca7ccc102feaafbe07e9ecf55e212aa0d733cb2
parentsync to 1.9.6: multiple improvements to references (.Rs) (diff)
downloadwireguard-openbsd-f8628b0f000a92bfbcd0c69a0d15772d8df86578.tar.xz
wireguard-openbsd-f8628b0f000a92bfbcd0c69a0d15772d8df86578.zip
sync to 1.9.6: minor fixes:
* avoid blank character before the closing ">" of .In * .Bt can not have children
-rw-r--r--usr.bin/mandoc/mdoc_term.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c
index 59f32f8983a..e3a5ebf6220 100644
--- a/usr.bin/mandoc/mdoc_term.c
+++ b/usr.bin/mandoc/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.58 2009/10/19 16:27:52 schwarze Exp $ */
+/* $Id: mdoc_term.c,v 1.59 2009/10/19 16:51:08 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -1413,7 +1413,7 @@ termp_bt_pre(DECL_ARGS)
{
term_word(p, "is currently in beta test.");
- return(1);
+ return(0);
}
@@ -1515,10 +1515,6 @@ termp_fn_pre(DECL_ARGS)
{
const struct mdoc_node *n;
- assert(node->child && MDOC_TEXT == node->child->type);
-
- /* FIXME: can be "type funcname" "type varname"... */
-
p->bold++;
term_word(p, node->child->string);
p->bold--;
@@ -1841,6 +1837,7 @@ termp_in_post(DECL_ARGS)
{
p->bold++;
+ p->flags |= TERMP_NOSPACE;
term_word(p, ">");
p->bold--;