summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2010-09-13 20:10:12 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2010-09-13 20:10:12 +0000
commitd0cd63a90f50fe5328147657a1a166d40d4978d8 (patch)
treecb3788e34d07b09025b520159887b3fbf328999a
parent36fccb034c641d4a8994baf1224221defe46c153 (diff)
Prevent .Pp and .Lp from looping endlessly on punctuation.
Fix for .Pp from kristaps@, i applied the same to .Lp. Bug reported by espie@.
-rw-r--r--usr.bin/mandoc/mdoc_argv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mdoc_argv.c b/usr.bin/mandoc/mdoc_argv.c
index 166ced62600..cd95d9bb2cb 100644
--- a/usr.bin/mandoc/mdoc_argv.c
+++ b/usr.bin/mandoc/mdoc_argv.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_argv.c,v 1.33 2010/07/25 18:05:54 schwarze Exp $ */
+/* $Id: mdoc_argv.c,v 1.34 2010/09/13 20:10:11 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -91,7 +91,7 @@ static int mdoc_argflags[MDOC_MAX] = {
0, /* Os */
0, /* Sh */
0, /* Ss */
- ARGS_DELIM, /* Pp */
+ 0, /* Pp */
ARGS_DELIM, /* D1 */
ARGS_DELIM, /* Dl */
0, /* Bd */
@@ -192,7 +192,7 @@ static int mdoc_argflags[MDOC_MAX] = {
0, /* Fr */
0, /* Ud */
0, /* Lb */
- ARGS_DELIM, /* Lp */
+ 0, /* Lp */
ARGS_DELIM, /* Lk */
ARGS_DELIM, /* Mt */
ARGS_DELIM, /* Brq */