From 2a41c48394ec5ec67abd8347baf70b46fc0b24b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Sat, 17 Jan 2009 05:24:05 +0000 Subject: [PATCH] InsetHyperlink.cpp: the "#" character must not be escaped in the URL field, only in the name field git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28195 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetHyperlink.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/insets/InsetHyperlink.cpp b/src/insets/InsetHyperlink.cpp index d1118d1166..f1f04fd8e6 100644 --- a/src/insets/InsetHyperlink.cpp +++ b/src/insets/InsetHyperlink.cpp @@ -91,14 +91,6 @@ int InsetHyperlink::latex(odocstream & os, OutputParams const & runparams) const if (url[pos + 1] != '\\') url.replace(pos, 1, from_ascii("%5C")); } - // "#" needs to be escapes to "\#", therefore the treatment - // of "\" must be done before - for (size_t i = 0, pos; - (pos = url.find('#', i)) != string::npos; - i = pos + 2) { - if (url[pos + 1] != '\\') - url.replace(pos, 1, from_ascii("\\#")); - } // add "http://" when the type is web (type = empty) // and no "://" or "run:" is given