Guys,

Could someone help me understand if this is a bug or if I am missing
something here.  When I make an image clickable by adding the :target:
option, the generated html does not modify the path so that it points
to the file's built location in _images.

For example the following image directive:

 image:: 0355.png
   :target: 0355.png
   :scale: 50

Generates this html code fragment which links to a non-existent file:

<a class="reference external image-reference" href="0355.png">
<img alt="_images/0355.png" src="_images/0355.png" style="height:
324.5px;" /></a>

Shouldn't the link be to href="_images/0355.png" instead of
href="0355.png" ?

For the built html to be correct I have to write the following which
just seems wrong:

 image:: 0355.png
   :target: _images/0355.png
   :scale: 50

I thought this might be something on my end so I updated to the latest
snapshot of docutils and sphinx and generated a default setup with
sphinx-quickstart, but there is no change in the behavior.

Thanks for the help,
Chip

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to