rinohtype icon indicating copy to clipboard operation
rinohtype copied to clipboard

Use of :py: prefix on property and method cross-references fails.

Open BobDenny opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

PDF produced by rinohtype

It's easy to reproduce.

Source files

:py:attr:`PropertyName` and :py:meth:`MethodName` render to styled links, but the links don't work. Removing the :py so the links are :attr:`PropertyName` and :meth:`MethodName` result in live working links. Strangely, :py:class\ClassName` works fine.

Versions

rinohtype 0.5.5 (2024-07-13)
Sphinx 7.2.6
Python 3.11.1 (tags/v3.11.1:a7a450f, Dec  6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)]
Windows-10-10.0.19045-SP0

BobDenny avatar Oct 15 '24 01:10 BobDenny

I'm failing to reproduce this. See:

  • https://github.com/brechtm/rinohtype/tree/master/tests_regression/sphinx/test-pyref
  • https://github.com/brechtm/rinohtype/blob/master/tests_regression/sphinx/pyref.pdf

Are the links working in HTML output?

Again, I'd like to stress the importance of source files that reproduce the issue. If you make these available, I can spend the time on fixing the issue instead of trying to reproduce it.

brechtm avatar Dec 06 '24 11:12 brechtm