emacs-orgmode
[Top][All Lists]
Advanced

[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: Bastien
Subject: Re: [O] [PATCH] * org-html.el (org-html-handle-links): add an alternate for inline images
Date: Tue, 19 Apr 2011 11:22:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Applied, thanks.

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")

-- 
 Bastien



reply via email to

[Prev in Thread] Current Thread [Next in Thread]