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-make-link): correct a bug in cod


From: Jambunathan K
Subject: Re: [O] [PATCH] * org-html.el (org-html-make-link): correct a bug in coderef link.
Date: Wed, 13 Apr 2011 00:28:34 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt)

Quick feedback. 

Applied the patch to my workarea. My example (which was stolen from
Orgmode manual) gets exported just fine.

Jambunathan K.

Manuel Giraud <address@hidden> writes:

> ---
>  lisp/org-html.el |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/lisp/org-html.el b/lisp/org-html.el
> index 58fbc05..5d53478 100644
> --- a/lisp/org-html.el
> +++ b/lisp/org-html.el
> @@ -826,7 +826,8 @@ MAY-INLINE-P allows inlining it as an image."
>               (not type)
>               (string= type "http")
>               (string= type "https")
> -             (string= type "file"))
> +             (string= type "file")
> +             (string= type "coderef"))
>              (if fragment
>                 (setq thefile (concat thefile "#" fragment))))
>  
> @@ -836,7 +837,8 @@ MAY-INLINE-P allows inlining it as an image."
>        (setq thefile
>           (let
>              ((str (org-export-html-format-href thefile)))
> -           (if (and type (not (string= "file" type)))
> +           (if (and type (not (or (string= "file" type)
> +                                  (string= "coderef" type))))
>                 (concat type ":" str)
>                 str)))

-- 



reply via email to

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