please Abdel.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33463 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2010-02-13 13:38:01 +00:00
parent 5fe40522fe
commit 7369a0a881

View File

@ -269,25 +269,25 @@ docstring nomenclWidest(Buffer const & buffer, OutputParams const & runparams)
}
}
// return the widest (or an empty) string
if (!symb.empty()) {
docstring latex_symb;
for (size_t n = 0; n < symb.size(); ++n) {
try {
latex_symb += runparams.encoding->latexChar(symb[n]);
} catch (EncodingException & /* e */) {
if (runparams.dryrun) {
latex_symb += "<" + _("LyX Warning: ")
+ _("uncodable character") + " '";
latex_symb += docstring(1, symb[n]);
latex_symb += "'>";
}
if (symb.empty())
return symb;
docstring latex_symb;
for (size_t n = 0; n < symb.size(); ++n) {
try {
latex_symb += runparams.encoding->latexChar(symb[n]);
} catch (EncodingException & /* e */) {
if (runparams.dryrun) {
latex_symb += "<" + _("LyX Warning: ")
+ _("uncodable character") + " '";
latex_symb += docstring(1, symb[n]);
latex_symb += "'>";
}
}
return latex_symb;
}
return symb;
}
return latex_symb;
}
} // namespace anon
int InsetPrintNomencl::latex(odocstream & os, OutputParams const & runparams_in) const