summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2010-05-24 00:37:01 +0000
committerschwarze <schwarze@openbsd.org>2010-05-24 00:37:01 +0000
commit1eeec0b703bfe6ea7415117996cad48016a5f998 (patch)
tree3f2ee0d749a2f1ecfd6c7900d33146683d47aee4
parentIncrease performance by saving the list type in struct mdoc_node. (diff)
downloadwireguard-openbsd-1eeec0b703bfe6ea7415117996cad48016a5f998.tar.xz
wireguard-openbsd-1eeec0b703bfe6ea7415117996cad48016a5f998.zip
Fix the code to add a line break before .Nm in the SYNOPSIS;
patch from Joerg Sonnenberger; this finally fixes the test(1) SYNOPSIS.
-rw-r--r--usr.bin/mandoc/mdoc_term.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c
index 9a9cf58c780..c07ff140199 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.82 2010/05/24 00:00:10 schwarze Exp $ */
+/* $Id: mdoc_term.c,v 1.83 2010/05/24 00:37:01 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -1041,6 +1041,7 @@ termp_nm_pre(DECL_ARGS)
{
if (NULL == n->child && NULL == m->name)
+ return(1);
if (SEC_SYNOPSIS == n->sec && MDOC_LINE & n->flags)
term_newln(p);