Restore XHTML output for InsetHyperlink.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32209 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-11-25 22:19:59 +00:00
parent 508ee6560c
commit b389ce6b1d
2 changed files with 6 additions and 8 deletions

View File

@ -17,6 +17,7 @@
#include "FuncRequest.h"
#include "LaTeXFeatures.h"
#include "OutputParams.h"
#include "output_xhtml.h"
#include "support/docstream.h"
#include "support/gettext.h"
@ -181,14 +182,11 @@ int InsetHyperlink::docbook(odocstream & os, OutputParams const &) const
}
docstring InsetHyperlink::xhtml(odocstream & os, OutputParams const &) const
docstring InsetHyperlink::xhtml(XHTMLStream & xs, 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>";
xs << StartTag("a", to_utf8("href=\"" + getParam("target") + "\""));
xs << getParam("name");
xs << EndTag("a");
return docstring();
}

View File

@ -41,7 +41,7 @@ public:
///
int docbook(odocstream &, OutputParams const &) const;
///
docstring xhtml(odocstream &, OutputParams const &) const;
docstring xhtml(XHTMLStream &, OutputParams const &) const;
/// the string that is passed to the TOC
void tocString(odocstream &) const;
///