[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] * org-html.el (org-html-handle-links): add an alternate
From: |
Jambunathan K |
Subject: |
Re: [O] [PATCH] * org-html.el (org-html-handle-links): add an alternate for inline images |
Date: |
Tue, 19 Apr 2011 14:18:42 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) |
Without alt validation fails, right?
Jambunathan K.
Manuel Giraud <address@hidden> writes:
> ---
> 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")
--