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