aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorIto Hiroyuki <ZXB01226@nifty.com>2010-08-02 10:33:35 +0000
committerIto Hiroyuki <ZXB01226@nifty.com>2010-08-02 10:33:35 +0000
commit3b56230efa916f7c3a33a7433e781679e21bebc6 (patch)
tree2ba8043d2d236c5dc183275ca5f3599638c2799c /file.c
parent* [w3m-dev 04348] Re: "important" bugs from bugs.debian.org (diff)
downloadw3m-3b56230efa916f7c3a33a7433e781679e21bebc6.tar.gz
w3m-3b56230efa916f7c3a33a7433e781679e21bebc6.zip
Revert the change of using ATTR_TITLE if ATTR_ALT is empty.
Diffstat (limited to '')
-rw-r--r--file.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/file.c b/file.c
index 49664d6..dd460fa 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.262 2010/07/30 08:57:49 htrb Exp $ */
+/* $Id: file.c,v 1.263 2010/08/02 10:33:35 htrb Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -3228,15 +3228,10 @@ process_img(struct parsed_tag *tag, int width)
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) {