Menu

#40 Caps break ``target`` option in ``image`` directive.

closed-fixed
None
5
2005-05-18
2005-05-15
No

The following test input::

.. image:: test.png
:target: Target_

A link to the Target_.

.. _Target: http://www.example.com/

Results in the following error output::

test.txt:: (ERROR/3) Unknown target name: "Target".

The first link can not find the name ``Target``, while
it is defined (in fact, the second reference works OK).
Changing the argument of ``:target:`` to ``test`` makes
it work right. Maybe a ``tolower()`` is lacking
somewhere in target handling code.

This situation also happens in the ``figure`` directive.

The test is made under SVN HEAD, but also applies to 0.3.7.

Discussion

  • Felix Wiemann

    Felix Wiemann - 2005-05-18

    Logged In: YES
    user_id=1014490

    Fixed; thanks for the bug report.

    You can download a current snapshot from:
    http://docutils.sf.net/docutils-snapshot.tgz

     
  • Felix Wiemann

    Felix Wiemann - 2005-05-18
    • status: open --> closed
     
  • Felix Wiemann

    Felix Wiemann - 2005-05-18
    • assigned_to: nobody --> felixwiemann
    • status: closed --> closed-fixed
     

Log in to post a comment.