diff --git a/sources/pdf_links.cpp b/sources/pdf_links.cpp index 0e7d131e8..5458f396b 100644 --- a/sources/pdf_links.cpp +++ b/sources/pdf_links.cpp @@ -228,7 +228,7 @@ void convertUriToGoTo(const QString &pdfPath) // Find closing ')' of the URI value int uriStart = found + sUri.size(); - int closeParen = data.indexOf(')', uriStart); + int closeParen = data.indexOf(")\n", uriStart); if (closeParen == -1) { // Malformed — copy rest verbatim out.append(data.mid(found));