aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-31 21:32:57 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-31 21:32:57 +0000
commit878455bd2ee9dbe5ce52f0098cf122592f313165 (patch)
tree064e2adddac9132fd82059fa399240f4e4063dce /mdoc.c
parentb7153d502e23dfcc397320ccede50ae94fbe9d92 (diff)
downloadmandoc-878455bd2ee9dbe5ce52f0098cf122592f313165.tar.gz
mandoc-878455bd2ee9dbe5ce52f0098cf122592f313165.tar.zst
mandoc-878455bd2ee9dbe5ce52f0098cf122592f313165.zip
Fixed my breaking of Ingo's eoln-whitespace detection code, where a
hyphen wasn't resetting the fact of being whitespace. Noted by Jason McIntyre.
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc.c b/mdoc.c
index b4760cb0..b1059ead 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc.c,v 1.144 2010/05/31 20:14:10 kristaps Exp $ */
+/* $Id: mdoc.c,v 1.145 2010/05/31 21:32:57 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -595,6 +595,7 @@ mdoc_ptext(struct mdoc *m, int line, char *buf, int offs)
case '-':
if (mandoc_hyph(buf + offs, c))
*c = ASCII_HYPH;
+ ws = NULL;
break;
case ' ':
if (NULL == ws)