From f42941536c6c16ba8b89dd5f25d8a747e3d5495d Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 19 Apr 2004 17:09:12 +0000 Subject: Better robustness when backends encounter a Unicode character not representable in the output character set. [originally from svn r4094] --- bk_xhtml.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bk_xhtml.c') diff --git a/bk_xhtml.c b/bk_xhtml.c index aff20a3..4b9b98c 100644 --- a/bk_xhtml.c +++ b/bk_xhtml.c @@ -1651,7 +1651,8 @@ static void xhtml_rdaddwc(rdstringc *rs, word *text, word *end, int indexable) { rdaddsc(rs, ""); if (removeattr(text->type) == word_Normal) { - if (xhtml_convert(text->text, 0, &c, TRUE)) /* spaces in the word are hard */ + if (xhtml_convert(text->text, 0, &c, TRUE) || !text->alt) + /* spaces in the word are hard */ rdaddsc(rs, c); else xhtml_rdaddwc(rs, text->alt, NULL, indexable); -- cgit v1.1