Output target if name is not defined.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32225 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-11-28 21:32:46 +00:00
parent 91be848e33
commit c1b4b30ab5

View File

@ -184,8 +184,10 @@ int InsetHyperlink::docbook(odocstream & os, OutputParams const &) const
docstring InsetHyperlink::xhtml(XHTMLStream & xs, OutputParams const &) const
{
xs << StartTag("a", to_utf8("href=\"" + getParam("target") + "\""));
xs << getParam("name");
docstring const & target = getParam("target");
docstring const & name = getParam("name");
xs << StartTag("a", to_utf8("href=\"" + target + "\""));
xs << (name.empty() ? target : name);
xs << EndTag("a");
return docstring();
}