diff options
author | albert-github <albert.tests@gmail.com> | 2017-09-03 17:18:38 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2017-09-03 17:18:38 (GMT) |
commit | bb5c8dd29782ecbb05a4ef9788f2507e9a156848 (patch) | |
tree | d6e588149123f017f478334027a0ea12b9f5b3e2 /src/context.cpp | |
parent | ddae91901de9509e8caff4181230535f236c5897 (diff) | |
download | Doxygen-bb5c8dd29782ecbb05a4ef9788f2507e9a156848.zip Doxygen-bb5c8dd29782ecbb05a4ef9788f2507e9a156848.tar.gz Doxygen-bb5c8dd29782ecbb05a4ef9788f2507e9a156848.tar.bz2 |
Bug 778730 - doxygen build fails
When a hyperlink splits across a page boundary it can come to the problem of "\pdfendlink ended up in different nesting level than \pdfstartlink".
To overcome this problem the \hyperlink is packed into a "\mbox" construct (as suffested e.g. in https://tex.stackexchange.com/questions/1522/pdfendlink-ended-up-in-different-nesting-level-than-pdfstartlink)
Diffstat (limited to 'src/context.cpp')
-rw-r--r-- | src/context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/context.cpp b/src/context.cpp index e5d98c1..de31202 100644 --- a/src/context.cpp +++ b/src/context.cpp @@ -3804,13 +3804,13 @@ class TextGeneratorLatex : public TextGeneratorIntf static bool pdfHyperlinks = Config_getBool(PDF_HYPERLINKS); if (!ref && pdfHyperlinks) { - m_ts << "\\hyperlink{"; + m_ts << "\\mbox{\\hyperlink{"; if (f) m_ts << stripPath(f); if (f && anchor) m_ts << "_"; if (anchor) m_ts << anchor; m_ts << "}{"; filterLatexString(m_ts,text); - m_ts << "}"; + m_ts << "}}"; } else { |