From 878455bd2ee9dbe5ce52f0098cf122592f313165 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 31 May 2010 21:32:57 +0000 Subject: 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. --- mdoc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 * @@ -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) -- cgit v1.2.3-56-ge451