summaryrefslogtreecommitdiffstats
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
commite11c652985a4e684164e30aa5841f0801f4e95f0 (patch)
tree0990c41c0d0f58e68c290e3f2dd8c915124ba7b2
parent2ed520ef0116f227a4e219a833990f4b42bb524b (diff)
downloadmandoc-e11c652985a4e684164e30aa5841f0801f4e95f0.tar.gz
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.
-rw-r--r--mdoc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdoc.c b/mdoc.c
index d23aea6a..3a3f5b4c 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -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)