mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 18:58:10 +00:00
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:
parent
91be848e33
commit
c1b4b30ab5
@ -184,8 +184,10 @@ int InsetHyperlink::docbook(odocstream & os, OutputParams const &) const
|
|||||||
|
|
||||||
docstring InsetHyperlink::xhtml(XHTMLStream & xs, OutputParams const &) const
|
docstring InsetHyperlink::xhtml(XHTMLStream & xs, OutputParams const &) const
|
||||||
{
|
{
|
||||||
xs << StartTag("a", to_utf8("href=\"" + getParam("target") + "\""));
|
docstring const & target = getParam("target");
|
||||||
xs << getParam("name");
|
docstring const & name = getParam("name");
|
||||||
|
xs << StartTag("a", to_utf8("href=\"" + target + "\""));
|
||||||
|
xs << (name.empty() ? target : name);
|
||||||
xs << EndTag("a");
|
xs << EndTag("a");
|
||||||
return docstring();
|
return docstring();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user