attraux(words->aux) == attr_Only))
rdaddc(rs, '`'); /* FIXME: configurability */
if (removeattr(words->type) == word_Normal) {
- if (info_convert(words->text, &c))
+ if (info_convert(words->text, &c) || !words->alt)
rdaddsc(rs, c);
else
info_rdaddwc(rs, words->alt, NULL, FALSE);
? (attraux(words->aux) == attr_Only ? 2 :
attraux(words->aux) == attr_Always ? 0 : 1)
: 0) +
- (info_convert(words->text, NULL) ?
+ (info_convert(words->text, NULL) || !words->alt ?
ustrlen(words->text) :
info_width_internal_list(words->alt, xrefs)));
if (removeattr(text->type) == word_Normal) {
if (rs->pos > 0)
quote_props &= ~QUOTE_INITCTRL; /* not at start any more */
- if (man_convert(text->text, 0, &c, quote_props))
+ if (man_convert(text->text, 0, &c, quote_props) || !text->alt)
rdaddsc(rs, c);
else
man_rdaddwc(rs, text->alt, NULL, quote_props);
attraux(text->aux) == attr_Only))
rdaddc(rs, '`'); /* FIXME: configurability */
if (removeattr(text->type) == word_Normal) {
- if (text_convert(text->text, &c))
+ if (text_convert(text->text, &c) || !text->alt)
rdaddsc(rs, c);
else
text_rdaddwc(rs, text->alt, NULL);
? (attraux(text->aux) == attr_Only ? 2 :
attraux(text->aux) == attr_Always ? 0 : 1)
: 0) +
- (text_convert(text->text, NULL) ?
+ (text_convert(text->text, NULL) || !text->alt ?
ustrlen(text->text) :
text_width_list(ctx, text->alt)));
whlp_set_font(state->h, newfont);
}
if (removeattr(text->type) == word_Normal) {
- if (whlp_convert(text->text, 0, &c, TRUE))
+ if (whlp_convert(text->text, 0, &c, TRUE) || !text->alt)
whlp_text(state->h, c);
else
whlp_mkparagraph(state, deffont, text->alt, FALSE);
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);