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




_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to