[w3m-dev 04350] Re: w3m's bugs from bugs.debian.org
Tatsuya Kinoshita <[email protected]> Sat, 31 Jul 2010 12:09:40 +0900 (JST)
| Newsgroups | gmane.comp.web.w3m.devel |
|---|---|
| Message-ID | <20100731.120940.41467601.tats%[email protected]> |
Debian >> * 140_pseudo-inlines.patch | Description: New option "pseudo_inlines" | Add option pseudo_inlines (Display pseudo-ALTs for inline images with no | ALT or TITLE string) so | w3m -o pseudo_inlines=0 | works like | lynx -pseudo_inlines | If there is no ALT tag or it is "" and ignore_null_img_alt=1 then use TITLE | instead. | Origin: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=329863#8 pseudo_inlines alttitle alttitle titlealt 2010-07-31 Tatsuya Kinoshita <[email protected]> * file.c (process_img): Revert the change of using ATTR_TITLE if ATTR_ALT is empty. ---- --- w3m.orig/file.c +++ w3m/file.c @@ -3228,15 +3228,10 @@ p = remove_space(p); q = NULL; parsedtag_get_value(tag, ATTR_ALT, &q); + if (!pseudoInlines && (q == NULL || (*q == '\0' && ignore_null_img_alt))) + return tmp; t = q; parsedtag_get_value(tag, ATTR_TITLE, &t); - if (q == NULL || (*q == '\0' && ignore_null_img_alt)) { - if (!pseudoInlines && (t == NULL || - (*t == '\0' && ignore_null_img_alt))) - return tmp; - q = t; - } - w = -1; if (parsedtag_get_value(tag, ATTR_WIDTH, &w)) { if (w < 0) { ---- --