]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetHyperlink.cpp
Properly fix handling of title layouts within insets (#11787)
[lyx.git] / src / insets / InsetHyperlink.cpp
index a225a8eb0bd55fbd94fc1ddec7d53f6906006f5e..6246ff840a53ac3752fb1fbf9b59b009b09844f5 100644 (file)
@@ -22,7 +22,7 @@
 #include "LaTeXFeatures.h"
 #include "OutputParams.h"
 #include "output_xhtml.h"
-#include "sgml.h"
+#include "xml.h"
 #include "texstream.h"
 
 #include "support/docstream.h"
@@ -218,20 +218,20 @@ int InsetHyperlink::docbook(odocstream & os, OutputParams const &) const
        os << "<ulink url=\""
           << subst(getParam("target"), from_ascii("&"), from_ascii("&amp;"))
           << "\">"
-          << sgml::escapeString(getParam("name"))
+          << xml::escapeString(getParam("name"))
           << "</ulink>";
        return 0;
 }
 
 
-docstring InsetHyperlink::xhtml(XHTMLStream & xs, OutputParams const &) const
+docstring InsetHyperlink::xhtml(XMLStream & xs, OutputParams const &) const
 {
        docstring const & target =
-               html::htmlize(getParam("target"), XHTMLStream::ESCAPE_AND);
+               xml::xmlize(getParam("target"), XMLStream::ESCAPE_AND);
        docstring const & name   = getParam("name");
-       xs << html::StartTag("a", to_utf8("href=\"" + target + "\""));
+       xs << xml::StartTag("a", to_utf8("href=\"" + target + "\""));
        xs << (name.empty() ? target : name);
-       xs << html::EndTag("a");
+       xs << xml::EndTag("a");
        return docstring();
 }