summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2010-05-24 00:37:02 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2010-05-24 00:37:02 +0000
commit0720e2c4cb29298111f13b19dd14802860115f95 (patch)
tree06a73442f57ab77eb117c00f41b3b6a7a887371b /usr.bin
parent6c7bf9cad1fb46791ef6a1c09fa7bc25809c5f62 (diff)
Fix the code to add a line break before .Nm in the SYNOPSIS;
patch from Joerg Sonnenberger; this finally fixes the test(1) SYNOPSIS.
Diffstat (limited to 'usr.bin')
-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);