emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Bug: Multiple external links in normal text NOT exported [7.7]


From: M. Bauer
Subject: [O] Bug: Multiple external links in normal text NOT exported [7.7]
Date: Sun, 4 Dec 2011 22:46:10 +0100

Hi,

as in the last paragraph of the Org v7.7 manual's section 4.3
about external links, "Org also finds external links in the
normal text and activates them as links."  While editing, this
completely works as described.

But when it comes to exporting, Org will *not* recognize the
second, third, etc. external link in normal text if it is *not*
marked by square brackets.  See below for some tests that will
fail in ASCII, UTF8, and HTML export.

Can you please consider this issue for one of the next versions
of Org?

Many thanks in advance,
Mathias

--------------------text to be exported--------------------
* One "pure" external link (i.e. w/o brackets) per line
OK: foo http://ok.com bar
OK: foo file:/bin/true bar

* Two "pure" external links (i.e. w/o brackets) per line
FAIL: foo http://ok.com bar http://fail.com baz
FAIL: foo file:/bin/sh bar http://fail.com baz

* One external link (with brackets) per line
OK: foo [[http://ok.com]] bar
OK: foo [[file:/bin/true]] bar

* Two external links (with brackets) per line
OK: foo [[http://ok.com]] bar [[file:/bin/true]] baz
OK: foo [[file:/bin/true]] bar [[http://ok.com]] baz

* One external link (with description) per line
OK: foo [[http://ok.com][OK]] bar
OK: foo [[file:/bin/true][true]] bar

* Two external links (with description) per line
OK: foo [[http://ok.com][OK]] bar [[file:/bin/true][true]] baz
OK: foo [[file:/bin/true][true]] bar [[http://ok.com][OK]] baz

* Mixing several forms of external links in one line
FAIL: http://ok.com bar http://fail.com baz
OK: foo http://ok.com bar [[http://ok.com]] baz
OK: foo http://ok.com bar [[http://ok.com][OK]] baz

FAIL: foo [[http://ok.com]] bar http://fail.com baz
OK: foo [[http://ok.com]] bar [[http://ok.com][OK]] baz

FAIL: foo [[http://ok.com][OK]] bar http://fail.com baz
OK: foo [[http://ok.com][OK]] bar [[http://ok.com]] baz

FAIL: foo http://ok.com bar [[http://ok.com]] baz http://fail.com foo
FAIL: foo http://ok.com bar [[http://ok.com][OK]] baz http://fail.com foo
FAIL: foo [[http://ok.com][OK]] bar http://fail.com baz [[http://ok.com]] foo
FAIL: foo [[http://ok.com]] bar [[http://ok.com][OK]] baz http://fail.com foo

* Mixing several forms and types of external links in one line
FAIL: foo http://ok.com bar [[http://ok.com]] baz file:/bin/false foo
FAIL: foo http://ok.com bar [[http://ok.com][OK]] baz file:/bin/false foo
FAIL: foo [[http://ok.com][OK]] bar file:/bin/false baz [[http://ok.com]] foo
FAIL: foo [[http://ok.com]] bar [[http://ok.com][OK]] baz file:/bin/false foo
--------------------text to be exported--------------------

Your bug report will be posted to the Org-mode mailing list.
------------------------------------------------------------------------

Emacs  : GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
 of 2010-12-11 on raven, modified by Debian
Package: Org-mode version 7.7

current state:
==============
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe
                      org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
                     org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
                  org-cycle-show-empty-lines 
org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
                   [org-add-hook change-major-mode-hook org-show-block-all 
append local]
                   5]
                 #[nil "\300\301\302\303\304$\207"
                   [org-add-hook change-major-mode-hook 
org-babel-show-result-all append
                    local]
                   5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners)
                          (src org-babel-exp-inline-src-blocks))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
                               org-beamer-auto-fragile-frames
                               org-beamer-place-default-actions-for-lists)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-block nil)
                     (comment org-export-blocks-format-comment t)
                     (ditaa org-export-blocks-format-ditaa nil)
                     (dot org-export-blocks-format-dot nil))
 )



reply via email to

[Prev in Thread] Current Thread [Next in Thread]