tag 491820 patch
thanks

This problem is caused by a number of unexpected macro expansions:

 mailto:[EMAIL PROTECTED]

is expanded using the mailto macro to

 <[EMAIL PROTECTED]>

This is expanded using the
(?su)(?<![">:\w])[\\]?(?P<target>[EMAIL PROTECTED])(?!["<\w.])
pattern and the mailto macro to

 &lt;&lt;[EMAIL PROTECTED]&gt;&gt;

This is then expanded using the
(?su)[\\]?&lt;&lt;(?P<attrlist>[\w"].*?)&gt;&gt; pattern and the xref2
macro to

 <xref linkend="[EMAIL PROTECTED]"/>

It would be best to fix this in AsciiDoc.  By changing the former
pattern to
n
 (?su)(?<![">:;\w])[\\]?(?P<target>[EMAIL PROTECTED])(?!["<&\w.])

so it wouldn't re-expand email addresses next to an entity.

If you want to work around the problem in elinks, I'd suggest the
attached patch, which reverts to the standard, more verbose rendering.

-- 
Matt                                                 http://ftbfs.org/
diff -ru elinks-0.11.4~/doc/asciidoc.conf elinks-0.11.4/doc/asciidoc.conf
--- elinks-0.11.4~/doc/asciidoc.conf    2008-07-31 13:30:04.000000000 -0700
+++ elinks-0.11.4/doc/asciidoc.conf     2008-07-31 13:30:18.000000000 -0700
@@ -54,9 +54,6 @@
 {0%&lt;http:{target}&gt;}
 {0#{0} &lt;http:{target}&gt;}
 
-[mailto-inlinemacro]
-&lt;{target}&gt;
-
 [header]
 template::[header-declarations]
 <refentry>

Reply via email to