emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daniel Clemente <n142857@gmail.com>
To: org-mode Mailinglist <emacs-orgmode@gnu.org>
Cc: Noorul Islam <noorul@noorul.com>
Subject: bug: [[file:something.org]] is exported to [[http:something.html]]
Date: Tue, 07 Sep 2010 22:42:18 +0200	[thread overview]
Message-ID: <87tym1thed.wl%n142857@gmail.com> (raw)


Commit bd1b57f92a33485c90db1efc407c8b7c7450993a (Thu Sep 2 11:35:43 2010 +0000) did something like this in org-html.el:

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


This broke the exporting of [[file:a.org]] links, which now appear as [[http:a.html]]. Try C-c C-e H on any .org with such links, even in emacs -Q.

The problem is, I think, that „type“ is actually "http", not "file" as the code tries.

-- Daniel

             reply	other threads:[~2010-09-07 20:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-07 20:42 Daniel Clemente [this message]
2010-09-07 21:41 ` [PATCH] Re: bug: [[file:something.org]] is exported to [[http:something.html]] Noorul Islam
2010-09-12 18:06   ` 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

  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=87tym1thed.wl%n142857@gmail.com \
    --to=n142857@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=noorul@noorul.com \
    /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).