Escape link name for DocBook.

Thanks to Martin Brown for pointing out the bug, and the obvious
solution.
This commit is contained in:
Richard Heck 2017-01-08 13:38:48 -05:00
parent b730419470
commit 06e2669b35

View File

@ -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("&amp;"))
<< "\">"
<< getParam("name")
<< sgml::escapeString(getParam("name"))
<< "</ulink>";
return 0;
}