[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#835162: How to link to an external URL with # (hash) sign?



Control: affects -1 - src:gdcm

On Tue, Aug 23, 2016 at 1:35 PM, Norbert Preining <preining@logic.at> wrote:
> forward 835162 https://github.com/ho-tex/hyperref/issues/20
> thanks
>
> Hi Mathieu,
>
>> Here is my attempt to minimize the issue (extracted from src:gdcm
>
> Well, not really minimal, here is a really minimal one:
>
> \documentclass{article}
> \usepackage{hyperref}
> \begin{document}
>
> \contentsline{section}{note: \href{http://a.b.c/d#EEE}{link} }{}{}
>
> \end{document}
>
> Did this *ever* work before, or did doxygen introduce something
> new here and started to insert href entries in contentlines?
>
> The problem is nameref.sty that is loaded and tries to link
> names of section. The inclusion of a \href in a
> \contentsline looks problematic, thus.
>
> TOC entries are already links to the respective sections in the
> document. Now if you add a "link within the link" this will not
> work, and can anyway not reasonably work.
>
> I still stand by that this is a bug in doxygen, it should not
> include href stuff in the contentsline code.
>
> Anyway, I have opened an issue at the hyperref github page,
> see above BTS code.

In fact this has been fix directly in src:gdcm upstream:

https://github.com/malaterre/GDCM/commit/dd23e10b5c032ff996e483d35f1c971e4f746835

The issue really was in the C++ comments for doxygen documentation.

Fill free to close this as wontfix, since it does not impact building
src:gdcm anymore.

Thanks for your time reducing the issue

-M


Reply to: