commit 06e2669b354561ebafcd69c24d0319d47ba1d279 Author: Richard Heck <rgh...@lyx.org> Date: Sun Jan 8 13:38:48 2017 -0500
Escape link name for DocBook. Thanks to Martin Brown for pointing out the bug, and the obvious solution. --- src/insets/InsetHyperlink.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/insets/InsetHyperlink.cpp b/src/insets/InsetHyperlink.cpp index 8b3433c..3160c0b 100644 --- a/src/insets/InsetHyperlink.cpp +++ b/src/insets/InsetHyperlink.cpp @@ -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; }