X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Finsets%2FInsetHyperlink.cpp;h=afa49d4e35b36d8573385cb1fddfbcf7dfceb853;hb=2777b51c587cb061b3214c670a3cc4b357528e6c;hp=275276b973e6f217a1907555e5c003d59e615aea;hpb=50060053e36b3e9dfe03bc33ed3abac1eacc54b0;p=lyx.git diff --git a/src/insets/InsetHyperlink.cpp b/src/insets/InsetHyperlink.cpp index 275276b973..afa49d4e35 100644 --- a/src/insets/InsetHyperlink.cpp +++ b/src/insets/InsetHyperlink.cpp @@ -150,7 +150,7 @@ void InsetHyperlink::latex(otexstream & os, (pos = url.find(chars_url[k], i)) != string::npos; i = pos + 2) url.replace(pos, 1, from_ascii("\\") + chars_url[k]); - + // add "http://" when the type is web (type = empty) // and no "://" or "run:" is given docstring type = getParam("type"); @@ -174,7 +174,7 @@ void InsetHyperlink::latex(otexstream & os, name.replace(pos, 1, sim); } } - + if (runparams.moving_arg) os << "\\protect"; @@ -213,7 +213,7 @@ int InsetHyperlink::docbook(odocstream & os, OutputParams const &) const docstring InsetHyperlink::xhtml(XHTMLStream & xs, OutputParams const &) const { - docstring const & target = + docstring const & target = html::htmlize(getParam("target"), XHTMLStream::ESCAPE_AND); docstring const & name = getParam("name"); xs << html::StartTag("a", to_utf8("href=\"" + target + "\""));