summaryrefslogtreecommitdiff
path: root/bk_xhtml.c
diff options
context:
space:
mode:
Diffstat (limited to 'bk_xhtml.c')
-rw-r--r--bk_xhtml.c3
1 files changed, 2 insertions, 1 deletions
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, "<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);