]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetHyperlink.cpp
Well, it turns out that we need a different return value for the xhtml
[lyx.git] / src / insets / InsetHyperlink.cpp
index 2c0192df998f3e1d4e5054e83fad571812bbd257..aa4ff3af7d784655d07bacb73bb8e753945067b6 100644 (file)
@@ -181,6 +181,18 @@ int InsetHyperlink::docbook(odocstream & os, OutputParams const &) const
 }
 
 
+docstring InsetHyperlink::xhtml(odocstream & os, OutputParams const &) const
+{
+       os << "<a href=\""
+                       // FIXME Do we need to do more escaping than this?
+          << subst(getParam("target"), from_ascii("&"), from_ascii("&amp;"))
+          << "\">"
+          << getParam("name")
+          << "</a>";
+       return docstring();
+}
+
+
 void InsetHyperlink::tocString(odocstream & os) const
 {
        plaintext(os, OutputParams(0));