emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] * org-html.el (org-html-handle-links): add an alternate for inline images
@ 2011-04-19  8:34 Manuel Giraud
  2011-04-19  8:48 ` Jambunathan K
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Manuel Giraud @ 2011-04-19  8:34 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Manuel Giraud

---
 lisp/org-html.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lisp/org-html.el b/lisp/org-html.el
index 5d53478..7a4564d 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -888,7 +888,8 @@ OPT-PLIST is the export options list."
 	  (if (string-match "^file:" desc)
 	      (setq desc (substring desc (match-end 0)))))
 	(setq desc (org-add-props
-		       (concat "<img src=\"" desc "\"/>")
+		       (concat "<img src=\"" desc "\" alt=\"" 
+			       (file-name-nondirectory desc) "\"/>")
 		       '(org-protected t))))
       (cond
        ((equal type "internal")
-- 
1.7.3.5

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-04-20  9:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-19  8:34 [PATCH] * org-html.el (org-html-handle-links): add an alternate for inline images Manuel Giraud
2011-04-19  8:48 ` Jambunathan K
2011-04-19  9:12   ` Manuel Giraud
2011-04-19  9:22 ` [Accepted] " Bastien Guerry
2011-04-19  9:22 ` [PATCH] " Bastien
2011-04-19 21:08   ` Aankhen
2011-04-20  8:09     ` Manuel Giraud
2011-04-20  9:10       ` Aankhen
2011-04-20  9:41         ` Manuel Giraud

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).