From: Manuel Giraud <manuel.giraud@univ-nantes.fr>
To: emacs-orgmode@gnu.org
Cc: Manuel Giraud <manuel.giraud@univ-nantes.fr>
Subject: [PATCH] * org-html.el (org-html-make-link): correct a bug in coderef link.
Date: Tue, 12 Apr 2011 15:18:50 +0200 [thread overview]
Message-ID: <1302614330-23496-1-git-send-email-manuel.giraud@univ-nantes.fr> (raw)
In-Reply-To: <81fwpnfzkd.fsf@gmail.com>
---
lisp/org-html.el | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/lisp/org-html.el b/lisp/org-html.el
index 58fbc05..5d53478 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -826,7 +826,8 @@ MAY-INLINE-P allows inlining it as an image."
(not type)
(string= type "http")
(string= type "https")
- (string= type "file"))
+ (string= type "file")
+ (string= type "coderef"))
(if fragment
(setq thefile (concat thefile "#" fragment))))
@@ -836,7 +837,8 @@ MAY-INLINE-P allows inlining it as an image."
(setq thefile
(let
((str (org-export-html-format-href thefile)))
- (if (and type (not (string= "file" type)))
+ (if (and type (not (or (string= "file" type)
+ (string= "coderef" type))))
(concat type ":" str)
str)))
--
1.7.3.5
next prev parent reply other threads:[~2011-04-12 13:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-12 12:01 [BUG] HTML Export/Broken coderef links? Jambunathan K
2011-04-12 13:18 ` Manuel Giraud [this message]
2011-04-12 18:58 ` [PATCH] * org-html.el (org-html-make-link): correct a bug in coderef link 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1302614330-23496-1-git-send-email-manuel.giraud@univ-nantes.fr \
--to=manuel.giraud@univ-nantes.fr \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).