aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--file.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/file.c b/file.c
index f53184d..61fb050 100644
--- a/file.c
+++ b/file.c
@@ -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) {