* org-publish fails to export the #anchor in other_org_file.html#anchor
@ 2010-10-12 22:29 Daniel Clemente
2010-10-24 18:29 ` David Maus
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Clemente @ 2010-10-12 22:29 UTC (permalink / raw)
To: org-mode Mailinglist
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))))
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-24 18:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-12 22:29 org-publish fails to export the #anchor in other_org_file.html#anchor Daniel Clemente
2010-10-24 18:29 ` David Maus
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.