diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-04-19 17:09:12 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-04-19 17:09:12 +0000 |
| commit | f42941536c6c16ba8b89dd5f25d8a747e3d5495d (patch) | |
| tree | b2533971228e8aeca27debb8e0ebb2ce7a85c107 /bk_xhtml.c | |
| parent | d74917688ba7d95ed71fe836091ec9d952f433e6 (diff) | |
| download | halibut-f42941536c6c16ba8b89dd5f25d8a747e3d5495d.zip halibut-f42941536c6c16ba8b89dd5f25d8a747e3d5495d.tar.gz halibut-f42941536c6c16ba8b89dd5f25d8a747e3d5495d.tar.bz2 halibut-f42941536c6c16ba8b89dd5f25d8a747e3d5495d.tar.xz | |
Better robustness when backends encounter a Unicode character not
representable in the output character set.
[originally from svn r4094]
Diffstat (limited to 'bk_xhtml.c')
| -rw-r--r-- | bk_xhtml.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1651,7 +1651,8 @@ static void xhtml_rdaddwc(rdstringc *rs, word *text, word *end, int indexable) { rdaddsc(rs, "<code>"); 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); |