summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2010-05-04 23:13:54 +0000
committerschwarze <schwarze@openbsd.org>2010-05-04 23:13:54 +0000
commit8cf0e75fbaa2a8f020f4e022249697be99789d74 (patch)
tree62b71dacb2b007d4098a2c1340f277f68a821ba8
parentmake the mixer process data as soon as it's pushed by one of its (diff)
downloadwireguard-openbsd-8cf0e75fbaa2a8f020f4e022249697be99789d74.tar.xz
wireguard-openbsd-8cf0e75fbaa2a8f020f4e022249697be99789d74.zip
end-of-sentence markers at the end of .Fn argument lists
ruin indentation of the next line in the SYNOPSIS section; bug found by jacekm@ in err(3)
-rw-r--r--usr.bin/mandoc/mdoc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mdoc.c b/usr.bin/mandoc/mdoc.c
index e4d5bec9102..374c3b81f4a 100644
--- a/usr.bin/mandoc/mdoc.c
+++ b/usr.bin/mandoc/mdoc.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc.c,v 1.42 2010/04/27 21:53:27 schwarze Exp $ */
+/* $Id: mdoc.c,v 1.43 2010/05/04 23:13:54 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -810,14 +810,17 @@ parsemacro(struct mdoc *m, int ln, char *buf)
/*
* Mark the end of a sentence, but be careful not to insert
- * markers into reference blocks.
+ * markers into reference blocks and after ellipses in
+ * function definitions.
*/
n = m->last;
if (n->child)
n = n->child;
while (n->next)
n = n->next;
- if (MDOC_TEXT == n->type && m->last->parent->tok != MDOC_Rs) {
+ if (MDOC_TEXT == n->type &&
+ MDOC_Fn != n->parent->tok &&
+ MDOC_Rs != m->last->parent->tok) {
t = n->string;
while (t[0] && t[1])
t++;