mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 19:59:46 +00:00
Escape link name for DocBook.
Thanks to Martin Brown for pointing out the bug, and the obvious
solution.
(cherry picked from commit 06e2669b35
)
This commit is contained in:
parent
f7558646b1
commit
3a1eff90b9
@ -22,6 +22,7 @@
|
|||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "OutputParams.h"
|
#include "OutputParams.h"
|
||||||
#include "output_xhtml.h"
|
#include "output_xhtml.h"
|
||||||
|
#include "sgml.h"
|
||||||
|
|
||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/FileName.h"
|
#include "support/FileName.h"
|
||||||
@ -232,7 +233,7 @@ int InsetHyperlink::docbook(odocstream & os, OutputParams const &) const
|
|||||||
os << "<ulink url=\""
|
os << "<ulink url=\""
|
||||||
<< subst(getParam("target"), from_ascii("&"), from_ascii("&"))
|
<< subst(getParam("target"), from_ascii("&"), from_ascii("&"))
|
||||||
<< "\">"
|
<< "\">"
|
||||||
<< getParam("name")
|
<< sgml::escapeString(getParam("name"))
|
||||||
<< "</ulink>";
|
<< "</ulink>";
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -112,6 +112,10 @@ What's new
|
|||||||
set to [None] or OT1 but the global default is T1.
|
set to [None] or OT1 but the global default is T1.
|
||||||
# Quote type ignored for LyXHTML: always "English" quotes used.
|
# Quote type ignored for LyXHTML: always "English" quotes used.
|
||||||
|
|
||||||
|
- Output correct identifier for DocBook XML.
|
||||||
|
|
||||||
|
- Correctly escape hyperlinks for DocBook output.
|
||||||
|
|
||||||
|
|
||||||
* LYX2LYX
|
* LYX2LYX
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user