emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] HTML Export/Broken coderef links?
@ 2011-04-12 12:01 Jambunathan K
  2011-04-12 13:18 ` [PATCH] * org-html.el (org-html-make-link): correct a bug in coderef link Manuel Giraud
  2011-04-13  9:20 ` [BUG] HTML Export/Broken coderef links? Aankhen
  0 siblings, 2 replies; 6+ messages in thread
From: Jambunathan K @ 2011-04-12 12:01 UTC (permalink / raw)
  To: emacs-orgmode


On HTML export, I am unable to follow references to lines within the
code examples. 

Firefox complains with the following message:

"Firefox doesn't know how to open this address; because the
protocol(coderef) isn't associated with any program."

--8<---------------cut here---------------start------------->8---
**** Advanced Example Blocks

     #+BEGIN_SRC emacs-lisp -n -r
     (save-excursion                  (ref:sc)
        (goto-char (point-min))       (ref:jump)
     #+END_SRC

     In line [[(sc)]] we remember the current position.  [[(jump)][Line (jump)]] jumps
     to point-min.
--8<---------------cut here---------------end--------------->8---



--8<---------------cut here---------------start------------->8---

#+begin_src html
<div id="outline-container-1_1_1_1" class="outline-5">
  <h5 id="sec-1_1_1_1"><span class="section-number-5">1.1.1.1</span> Advanced Example Blocks </h5>
  <div id="text-1_1_1_1" class="outline-text-5">

    <pre class="example"><span id="coderef-sc" class="coderef-off"><span class="linenr">1:  </span>(save-excursion</span>
    <span id="coderef-jump" class="coderef-off"><span class="linenr">2:  </span>   (goto-char (point-min))</span>
    </pre>

    <p>
      In line <a href="coderef:"class="coderef" onmouseover="CodeHighlightOn(this, 'coderef-sc');" onmouseout="CodeHighlightOff(this, 'coderef-sc');">1</a> we remember the current position.  <a href="coderef:"class="coderef" onmouseover="CodeHighlightOn(this, 'coderef-jump');" onmouseout="CodeHighlightOff(this, 'coderef-jump');">Line 2</a> jumps
      to point-min.
    </p>

  </div>

</div>
#+end_src
--8<---------------cut here---------------end--------------->8---

Jambunathan K.
-- 

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

end of thread, other threads:[~2011-04-15 12:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-12 12:01 [BUG] HTML Export/Broken coderef links? Jambunathan K
2011-04-12 13:18 ` [PATCH] * org-html.el (org-html-make-link): correct a bug in coderef link Manuel Giraud
2011-04-12 18:58   ` Jambunathan K
2011-04-15 11:58   ` [Accepted] " Carsten Dominik
2011-04-13  9:20 ` [BUG] HTML Export/Broken coderef links? Aankhen
2011-04-13  9:23   ` Aankhen

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