You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I add the :target: to the image construct in an *.rst file, the tex file changes how text following an image is represented. The tex files ignores the image alignment, and the text directly after the image is no longer on a new line.
To be more specific here is the tex output between the two. The noindent is missing, as well as a blank new line when you include the :target: tag in the *.rst file.
*.tex without the :target:
\section{Example}
\label{\detokenize{docs/readme:test}}\label{\detokenize{docs/readme:test1}}\label{\detokenize{docs/readme::doc}}
\noindent{\hspace*{\fill}\sphinxincludegraphics[width=184\sphinxpxdimen]{{logo}.png}\hspace*{\fill}}
\sphinxhref{https://www.example.com}{Example} Test
*.tex with :target:
\section{Example}
\label{\detokenize{docs/readme:test}}\label{\detokenize{docs/readme:test1}}\label{\detokenize{docs/readme::doc}}\sphinxhref{https://www.example.com}{\sphinxincludegraphics[width=184\sphinxpxdimen]{{logo}.png}}
\sphinxhref{https://www.example.com}{Example} Test
To Reproduce
Steps to reproduce the behavior:
*.rst file with target
.. image:: logo.png
:target: https://www.example.com
:alt: Logo
:align: center
:width: 184px
`example <https://example.com>`_ test
*.rst file with target
.. image:: logo.png
:alt: Logo
:align: center
:width: 184px
`example <https://example.com>`_ test
Expected behavior
The image should be a link to the URI provided and the text should be on a new line.
Screenshots
With :target:
Without :target:
Environment info
OS: Ubuntu 16.04
Python version: 2.7.15rc1
Sphinx version: sphinx-build 1.8.4
Sphinx extensions: n/a
Extra tools: texi2pdf (GNU Texinfo 6.5) 7842, Latexmk, John Collins, 1 January 2015. Version 4.41
The text was updated successfully, but these errors were encountered:
Describe the bug
When I add the :target: to the image construct in an *.rst file, the tex file changes how text following an image is represented. The tex files ignores the image alignment, and the text directly after the image is no longer on a new line.
To be more specific here is the tex output between the two. The noindent is missing, as well as a blank new line when you include the :target: tag in the *.rst file.
*.tex without the :target:
*.tex with :target:
To Reproduce
Steps to reproduce the behavior:
*.rst file with target
*.rst file with target
Expected behavior
The image should be a link to the URI provided and the text should be on a new line.
Screenshots
With :target:
Without :target:
Environment info
The text was updated successfully, but these errors were encountered: