diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-31 21:32:57 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-31 21:32:57 +0000 |
commit | 878455bd2ee9dbe5ce52f0098cf122592f313165 (patch) | |
tree | 064e2adddac9132fd82059fa399240f4e4063dce | |
parent | b7153d502e23dfcc397320ccede50ae94fbe9d92 (diff) | |
download | mandoc-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.
-rw-r--r-- | mdoc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |