diff options
author | Ito Hiroyuki <ZXB01226@nifty.com> | 2010-07-19 12:53:39 +0000 |
---|---|---|
committer | Ito Hiroyuki <ZXB01226@nifty.com> | 2010-07-19 12:53:39 +0000 |
commit | cc5f95be509c70a94d914c62df45403d0e10295e (patch) | |
tree | 7266288808fe4622f1104bc2cee50f0d21861283 /file.c | |
parent | * [w3m-dev 04321] Re: w3m's bugs from bugs.debian.org (diff) | |
download | w3m-cc5f95be509c70a94d914c62df45403d0e10295e.tar.gz w3m-cc5f95be509c70a94d914c62df45403d0e10295e.zip |
* [w3m-dev 04321] Re: w3m's bugs from bugs.debian.org
* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=329863#8
* rc.c: Introduce option pseudo_inlines.
* fm.h: add global variable pseudoInlines.
* file.c (process_img): check q.
Diffstat (limited to '')
-rw-r--r-- | file.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.257 2010/07/19 11:45:24 htrb Exp $ */ +/* $Id: file.c,v 1.258 2010/07/19 12:53:39 htrb Exp $ */ #include "fm.h" #include <sys/types.h> #include "myctype.h" @@ -3224,6 +3224,13 @@ process_img(struct parsed_tag *tag, int width) parsedtag_get_value(tag, ATTR_ALT, &q); 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) { |