From: Noorul Islam K M <noorul@noorul.com>
To: Achim Gratz <Stromeko@nexgo.de>
Cc: emacs-orgmode@gnu.org
Subject: [PATCH] Re: html-export mangels mailto: links
Date: Thu, 02 Sep 2010 12:05:43 +0530 [thread overview]
Message-ID: <87iq2o3b5s.fsf@noorul.maa.corp.collab.net> (raw)
In-Reply-To: <87fwxtjjmh.fsf@Rainer.invalid> (Achim Gratz's message of "Wed, 01 Sep 2010 22:26:14 +0200")
[-- Attachment #1: Type: text/plain, Size: 607 bytes --]
Achim Gratz <Stromeko@nexgo.de> writes:
> HTML export removes the "mailto:" from a link, which will then be
> interpreted as a local link by the browser.
>
> For an example, see the link to this mailing list in
> ORGWEBPAGE/index.org and the corresponding HTML export on orgmode-org
> (or just the local file).
>
org-html.el : Fix exporting file, mailto, news and ftp protocols.
* lisp/org-html.el (org-html-make-link): (expand-file-name
) removes one "/" from "///path-to-file", so add one. Anything other
than 'file' type should be exported along with the type.
TINYCHANGE
Thanks and Regards
Noorul
[-- Attachment #2: org-html.el.txt --]
[-- Type: text/plain, Size: 813 bytes --]
diff --git a/lisp/org-html.el b/lisp/org-html.el
index 099b2e3..4430768 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -720,7 +720,7 @@ MAY-INLINE-P allows inlining it as an image."
;;Substitute just if original path was absolute.
;;(Otherwise path must remain relative)
(if (file-name-absolute-p path)
- (expand-file-name path)
+ (concat "/" (expand-file-name path))
path)))
((string= type "")
(list nil path))
@@ -756,8 +756,7 @@ 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))
- (org-string-match-p "^//" str))
+ (if (and type (not (string= "file" type)))
(concat type ":" str)
str)))
[-- Attachment #3: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-09-02 6:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-01 20:26 [Bug] html-export mangels mailto: links Achim Gratz
2010-09-02 6:35 ` Noorul Islam K M [this message]
2010-09-02 15:33 ` [Accepted] " Bastien Guerry
2010-09-02 15:35 ` [PATCH] " Bastien
2010-09-12 18:29 ` Achim Gratz
2010-09-12 19:02 ` David Maus
2010-09-12 19:23 ` Achim Gratz
2010-09-12 19:29 ` Eric S Fraga
2010-09-12 19:36 ` Achim Gratz
2010-09-13 1:24 ` Nick Dokos
2010-09-13 4:56 ` Achim Gratz
2010-09-13 18:34 ` Achim Gratz
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=87iq2o3b5s.fsf@noorul.maa.corp.collab.net \
--to=noorul@noorul.com \
--cc=Stromeko@nexgo.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.