From: "^["@mysql1.xlhost.de
To: emacs-orgmode@gnu.org
Subject: [PATCH] Don't add url type if link is relative.
Date: Sat, 22 May 2010 17:18:29 +0200 [thread overview]
Message-ID: <26585.4739388034$1274541719@news.gmane.org> (raw)
In-Reply-To: <9D6CA50A-E027-409F-BA0A-70175CD01F5D@uva.nl>
From: David Maus <dmaus@ictsoc.de>
---
lisp/ChangeLog | 3 +++
lisp/org-html.el | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b3a3529..1bbb4be 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
2010-05-22 David Maus <dmaus@ictsoc.de>
+ * org-html.el (org-html-make-link): Don't add url type if link
+ is relative.
+
* org-w3m.el (org-w3m-copy-for-org-mode)
(org-w3m-get-next-link-start, org-w3m-get-prev-link-start):
Get text property directly, not using macro `w3m-anchor'.
diff --git a/lisp/org-html.el b/lisp/org-html.el
index d5f4775..221cbf6 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -640,7 +640,7 @@ MAY-INLINE-P allows inlining it as an image."
(setq thefile
(let
((str (org-export-html-format-href thefile)))
- (if type
+ (if (and type (string-match-p "^//" str))
(concat type ":" str)
str)))
--
1.7.1
next prev parent reply other threads:[~2010-05-22 15:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-18 7:01 Link export to HTML Carsten Dominik
2010-05-22 15:18 ` [PATCH] org-html.el: Don't add link type if link is relative ^[
2010-05-22 15:18 ` ^[ [this message]
[not found] ` <1274541509-14632-1-git-send-email-^[>
2010-05-22 15:24 ` David Maus
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='26585.4739388034$1274541719@news.gmane.org' \
--to="^["@mysql1.xlhost.de \
--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 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.