Re: [O] Bug: 2nd, 3rd, ... ext link in normal text NOT exported [7.7]

2011-12-12 Thread Mathias Bauer
On Sun, Dec 11, 2011 at 11:01:13AM +0100, David Maus wrote:
 At Mon, 5 Dec 2011 17:19:29 +0100, M. Bauer wrote:
 
  as in the last paragraph of the Org v7.7 manual 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 expected.
 
  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?

 Pushed a fix for this to master, all links in the example file
 are now exported as expected.

Thanks very much.

Mathias



Re: [O] Bug: 2nd, 3rd, ... ext link in normal text NOT exported [7.7]

2011-12-11 Thread David Maus
At Mon, 5 Dec 2011 17:19:29 +0100,
M. Bauer wrote:

 Hi,

 as in the last paragraph of the Org v7.7 manual 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 expected.

 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?

Pushed a fix for this to master, all links in the example file are now
exported as expected.

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpV4ghLSI8vD.pgp
Description: PGP signature


Re: [O] Bug: 2nd, 3rd, ... ext link in normal text NOT exported [7.7]

2011-12-11 Thread Bastien
David Maus dm...@ictsoc.de writes:

 Pushed a fix for this to master, all links in the example file are now
 exported as expected.

Thanks for fixing this!

-- 
 Bastien



[O] Bug: 2nd, 3rd,... ext link in normal text NOT exported [7.7]

2011-12-05 Thread M. Bauer
Hi,

as in the last paragraph of the Org v7.7 manual 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 expected.

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

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

Configuration: defaults from standard distribution



Re: [O] Bug: 2nd, 3rd, ... ext link in normal text NOT exported [7.7]

2011-12-05 Thread David Maus
At Mon, 5 Dec 2011 17:19:29 +0100,
M. Bauer wrote:

 Hi,

 as in the last paragraph of the Org v7.7 manual 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 expected.

 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?

I can confirm this bug for

Org-mode version 7.7 (release_7.7.619.g3aaa5)

on

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

Down in `org-export-normalize-links' Org skips the entire line if
there is a bracket link /anywhere/ on the line.

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpMB9SwuttZg.pgp
Description: PGP signature