mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
508ee6560c
commit
b389ce6b1d
@ -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("&"))
|
||||
<< "\">"
|
||||
<< getParam("name")
|
||||
<< "</a>";
|
||||
xs << StartTag("a", to_utf8("href=\"" + getParam("target") + "\""));
|
||||
xs << getParam("name");
|
||||
xs << EndTag("a");
|
||||
return docstring();
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user