diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-14 12:00:24 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-14 12:00:24 +0000 |
commit | d502d4a4bb59a31df7fdbcf4a9b59c21fc1aef1c (patch) | |
tree | c129ec2a6cff6e6b273a35afb8d240ceb8158c5e | |
parent | b7321ad35a6dbbfd5b61781b7cd128a4ad6e4cae (diff) | |
download | mandoc-d502d4a4bb59a31df7fdbcf4a9b59c21fc1aef1c.tar.gz mandoc-d502d4a4bb59a31df7fdbcf4a9b59c21fc1aef1c.tar.zst mandoc-d502d4a4bb59a31df7fdbcf4a9b59c21fc1aef1c.zip |
Fix of fix of -Thtml nospace.
-rw-r--r-- | html.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.85 2009/11/14 11:58:36 kristaps Exp $ */ +/* $Id: html.c,v 1.86 2009/11/14 12:00:24 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -372,11 +372,11 @@ print_text(struct html *h, const char *p) if ( ! (h->flags & HTML_NOSPACE)) putchar(' '); - h->flags &= ~HTML_NOSPACE; h->flags &= ~HTML_NEWLINE; - if (p) - print_encode(h, p); + assert(p); + if ( ! print_encode(h, p)) + h->flags &= ~HTML_NOSPACE; if (*p && 0 == *(p + 1)) switch (*p) { |