emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] org-publish fails to export the #anchor in other_org_file.html


From: Daniel Clemente
Subject: [Orgmode] org-publish fails to export the #anchor in other_org_file.html#anchor
Date: Wed, 13 Oct 2010 00:29:25 +0200
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/24.0.50 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

Hi.

Before commit bbac53d7fe1cab14bc70e152092cf7a538a6a810, org-publish made this 
change to my HTML, which was wrong:

-Precisamente una idea loca que tengo es <a 
href="emacs.html#jgg8k741eue0">integrar la World Wide Web en org-mode</a>…
+Precisamente una idea loca que tengo es <a 
href="http:emacs.html#jgg8k741eue0">integrar la World Wide Web en org-mode</a>…


After that commit (and in exactly the same setup), it makes this change, which 
is also wrong:

-Precisamente una idea loca que tengo es <a 
href="emacs.html#jgg8k741eue0">integrar la World Wide Web en org-mode</a>…
+Precisamente una idea loca que tengo es <a href="emacs.html">integrar la World 
Wide Web en org-mode</a>…


I think org-html-make-link doesn't export anchors („fragments“) in links 
between org files.
The following patch corrects this for me; please review.

diff --git a/lisp/org-html.el b/lisp/org-html.el
index 3fd7b72..3e4a789 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -746,7 +746,8 @@ MAY-INLINE-P allows inlining it as an image."
            ((or
                (not type)
                (string= type "http")
-               (string= type "https"))
+               (string= type "https")
+               (string= type "file"))
               (if fragment
                  (setq thefile (concat thefile "#" fragment))))
 






reply via email to

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