mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 11:23:45 +00:00
Escape standalone ampersands in xhtml InsetCitation
This commit is contained in:
parent
b1c388207e
commit
1865738417
@ -663,7 +663,9 @@ docstring InsetCitation::xhtml(XMLStream & xs, OutputParams const &) const
|
|||||||
return docstring();
|
return docstring();
|
||||||
|
|
||||||
// have to output this raw, because generateLabel() will include tags
|
// have to output this raw, because generateLabel() will include tags
|
||||||
xs << XMLStream::ESCAPE_NONE << generateLabel(true);
|
// but we need to escape standalone ampersands
|
||||||
|
xs << XMLStream::ESCAPE_NONE
|
||||||
|
<< subst(generateLabel(true), from_ascii(" & "), from_ascii(" & "));
|
||||||
|
|
||||||
return docstring();
|
return docstring();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user