diff options
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 { |