emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] org-exp.el: Broken Internal Links on Fuzzy Match
@ 2010-10-29 21:26 Jambunathan K
  2011-02-03 17:00 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Jambunathan K @ 2010-10-29 21:26 UTC (permalink / raw)
  To: emacs-orgmode


(Refiling with added info, Thanks Noorul)

See Heading2 for description of the bug. This bug has been there since
time immemorial.

(setq org-link-search-must-match-exact-headline nil)

# Input Org file

* Heading1
  
* Heading2
  
  Link to [[Heading1]] is OK. Link to [[Heading3]] is broken. To fix this,
  org-link-search in org-export-target-internal-links should avoid
  matching on the self somehow.
  
* Heading3
  
# Buggy HTML Output  

#+begin_src html
  <p> 
    Link to <a href="#sec-1">Heading1</a> is OK.  Link to
    <a href="#sec-2">Heading3</a> is broken. To fix this, org-link-search
    in org-export-target-internal-links should avoid matching on the
    self somehow.
  </p>
#+end_src


Jambunathan K.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] org-exp.el: Broken Internal Links on Fuzzy Match
  2010-10-29 21:26 [BUG] org-exp.el: Broken Internal Links on Fuzzy Match Jambunathan K
@ 2011-02-03 17:00 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2011-02-03 17:00 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode

Jambunathan K <kjambunathan@gmail.com> writes:

> (Refiling with added info, Thanks Noorul)
>
> See Heading2 for description of the bug. This bug has been there since
> time immemorial.
>
> (setq org-link-search-must-match-exact-headline nil)
>
> # Input Org file
>
> * Heading1
>   
> * Heading2
>   
>   Link to [[Heading1]] is OK. Link to [[Heading3]] is broken. To fix this,
>   org-link-search in org-export-target-internal-links should avoid
>   matching on the self somehow.
>   
> * Heading3
>   
> # Buggy HTML Output  
>
> #+begin_src html
>   <p> 
>     Link to <a href="#sec-1">Heading1</a> is OK.  Link to
>     <a href="#sec-2">Heading3</a> is broken. To fix this, org-link-search
>     in org-export-target-internal-links should avoid matching on the
>     self somehow.
>   </p>
> #+end_src

Fixed, thanks for the detailed report

-- 
 Bastien

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-03 17:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-29 21:26 [BUG] org-exp.el: Broken Internal Links on Fuzzy Match Jambunathan K
2011-02-03 17:00 ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).