mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +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
|
||||
{
|
||||
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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user