From: Guenter M. <mi...@us...> - 2009-09-18 10:18:32
|
Dear Docutils developers, the bug 1627229, https://sourceforge.net/tracker/?func=detail&aid=1627229&group_id=38414&atid=422030 reports that in the example:: .. |x| replace:: `External Hyperlink`_ .. _External Hyperlink: external.html This should be an |x| just like the verbatim `External Hyperlink`_. the replacement results in an internal hyperlink. Indeed, the pseudoxml generated from this example is:: <document source="/home/milde/Texte/Test/Docutils/external-link-in-substitution.txt"> <substitution_definition names="x"> <reference name="External Hyperlink" refuri="external.html"> External Hyperlink <target ids="external-hyperlink" names="external\ hyperlink" refuri="external.html"> <paragraph> This should be an <reference name="External Hyperlink" refid="external-hyperlink"> External Hyperlink similar to the verbatim <reference name="External Hyperlink" refuri="external.html"> External Hyperlink . The external hyperlink reference is solved in the "literal hyperlink" as well as in the substitution definition, but not in the substitution replacement! How to proceed? a) change the order of transformations so that the ExternalTargets are replaced before the Substitutions (side-effects)? b) modify the ExternalTargets transform to also solve the refid in the <reference> node generated by the Substitutions transform? c) declare this a feature. Günter |