Hi, here is a bug related to this syntax: <a href="#id:jgg8k741eue0">
To reproduce this you need latest Emacs (e.g. from Bazaar), latest org-mode,
and 3 files in ~/org-linktest/ (remove the BEGIN_QUOTE etc):
1) ~/org-linktest/has_ids.org:
#+BEGIN_QUOTE
*** TODO first section
:PROPERTIES:
:ID: jgg8k741eue0
:END:
Something good.
#+END_QUOTE
2) ~/org-linktest/linker.org:
#+BEGIN_QUOTE
* Hi
Go to [[id:jgg8k741eue0][first section]]…
#+END_QUOTE
3) ~/org-linktest/linktest.el:
#+BEGIN_QUOTE
(add-to-list 'load-path "/w/org-mode/lisp") ; or wherever you have latest
org-mode
(require 'org)
(require 'org-publish)
(setq org-publish-project-alist nil)
(add-to-list 'org-publish-project-alist
`("linktest"
:base-directory "~/org-linktest/"
:publishing-directory "~/org-linktest/"
:auto-postamble nil
)
)
(setq org-publish-use-timestamps-flag nil)
; (org-publish-file "~/org-linktest/linker.org")
(org-publish-project "linktest" t)
#+END_QUOTE
To reproduce:
1) Open: emacs -Q
2) Open linktest.el
3) Eval it (eval-buffer). linker.html and has_ids.html are created in
~/org-linktest/
Result:
linker.html has this code for the link, which is wrong:
<p>
Go to <a href="#id:jgg8k741eue0">first section</a>…
</p></div>
It should be:
<p>
Go to <a href="has_ids.html#id:jgg8k741eue0">first section</a>…
</p></div>
Notes:
- It works correctly when normal export (C-c C-e H) is used.
- I tried to bisect the history tree from 5.23 to now and I saw the bug in all
versions. Strange, since I thought this didn't happen before. Maybe it's in
Emacs? Or it isn't a bug? But it feels like a bug.
- It also happens with new-style IDs, which are longer
Thanks,
Daniel
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode