mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
Escape link name for DocBook.
Thanks to Martin Brown for pointing out the bug, and the obvious solution.
This commit is contained in:
parent
b730419470
commit
06e2669b35
@ -22,6 +22,7 @@
|
||||
#include "LaTeXFeatures.h"
|
||||
#include "OutputParams.h"
|
||||
#include "output_xhtml.h"
|
||||
#include "sgml.h"
|
||||
#include "texstream.h"
|
||||
|
||||
#include "support/docstream.h"
|
||||
@ -233,7 +234,7 @@ int InsetHyperlink::docbook(odocstream & os, OutputParams const &) const
|
||||
os << "<ulink url=\""
|
||||
<< subst(getParam("target"), from_ascii("&"), from_ascii("&"))
|
||||
<< "\">"
|
||||
<< getParam("name")
|
||||
<< sgml::escapeString(getParam("name"))
|
||||
<< "</ulink>";
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user