summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2010-10-01 21:38:27 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2010-10-01 21:38:27 +0000
commit94dec931c227d0c75634cb6df92bd4c5cbc22767 (patch)
tree1dd28f2247593f50ea00196c843d89a5ec9aac32 /usr.bin/mandoc/html.c
parentec83e16587ec78170349cdc7c462316148f237f2 (diff)
* need a space before .No even if it starts with a closing delimiter
* slightly simplify .Pf *_IGNDELIM code, and share part of it with .No * do not let opening delimiters fall out of the front of .Ns (from kristaps@) This fixes a few spacing issues in csh(1) and ksh(1). OK kristaps@
Diffstat (limited to 'usr.bin/mandoc/html.c')
-rw-r--r--usr.bin/mandoc/html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mandoc/html.c b/usr.bin/mandoc/html.c
index 717664eb5c5..58778d9ffd9 100644
--- a/usr.bin/mandoc/html.c
+++ b/usr.bin/mandoc/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.16 2010/09/27 21:25:28 schwarze Exp $ */
+/* $Id: html.c,v 1.17 2010/10/01 21:38:26 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -548,6 +548,8 @@ print_text(struct html *h, const char *word)
if ( ! (h->flags & HTML_NONOSPACE))
h->flags &= ~HTML_NOSPACE;
+ h->flags &= ~HTML_IGNDELIM;
+
/*
* Note that we don't process the pipe: the parser sees it as
* punctuation, but we don't in terms of typography.