mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-01 21:45:23 +00:00
DocBook: in ERTs, recognise calls to the logos (as in InsetSpecialChar).
This commit is contained in:
parent
122b452b20
commit
812ce48e78
@ -134,6 +134,14 @@ void InsetERT::docbook(XMLStream & xs, OutputParams const & runparams) const
|
|||||||
// Output the ERT as a comment with the appropriate escaping if the command is not recognised.
|
// Output the ERT as a comment with the appropriate escaping if the command is not recognised.
|
||||||
if (trim(os.str()) == from_ascii("\\textquotesingle")) {
|
if (trim(os.str()) == from_ascii("\\textquotesingle")) {
|
||||||
xs << "'";
|
xs << "'";
|
||||||
|
} else if (trim(os.str()) == from_ascii("\\TeX") || trim(os.str()) == from_ascii("\\TeX{}")) {
|
||||||
|
xs << "TeX";
|
||||||
|
} else if (trim(os.str()) == from_ascii("\\LaTeX") || trim(os.str()) == from_ascii("\\LaTeX{}")) {
|
||||||
|
xs << "LaTeX";
|
||||||
|
} else if (trim(os.str()) == from_ascii("\\LaTeXe") || trim(os.str()) == from_ascii("\\LaTeXe{}")) {
|
||||||
|
xs << "LaTeX2ε";
|
||||||
|
} else if (trim(os.str()) == from_ascii("\\LyX") || trim(os.str()) == from_ascii("\\LyX{}")) {
|
||||||
|
xs << "LyX";
|
||||||
} else {
|
} else {
|
||||||
xs << XMLStream::ESCAPE_NONE << "<!-- ";
|
xs << XMLStream::ESCAPE_NONE << "<!-- ";
|
||||||
xs << XMLStream::ESCAPE_COMMENTS << os.str();
|
xs << XMLStream::ESCAPE_COMMENTS << os.str();
|
||||||
|
Loading…
Reference in New Issue
Block a user