Whitespace

This commit is contained in:
Juergen Spitzmueller 2012-07-01 08:38:54 +02:00
parent 56f0e0c4fc
commit 507302b444
2 changed files with 5 additions and 4 deletions

View File

@ -1745,14 +1745,15 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
IndicesList::const_iterator iend = indiceslist().end();
for (; iit != iend; ++iit) {
pair<docstring, docstring> indexname_latex =
features.runparams().encoding->latexString(iit->index(), features.runparams().dryrun);
features.runparams().encoding->latexString(iit->index(),
features.runparams().dryrun);
if (!indexname_latex.second.empty()) {
// issue a warning about omitted characters
// FIXME: should be passed to the error dialog
frontend::Alert::warning(_("Uncodable characters"),
bformat(_("The following characters that are used in an index name are not\n"
"representable in the current encoding and therefore have been omitted:\n%1$s."),
indexname_latex.second));
"representable in the current encoding and therefore have been omitted:\n%1$s."),
indexname_latex.second));
}
lyxpreamble += "\\newindex[";
lyxpreamble += indexname_latex.first;

View File

@ -65,7 +65,7 @@ void InsetIndex::latex(otexstream & os, OutputParams const & runparams_in) const
if (buffer().masterBuffer()->params().use_indices && !params_.index.empty()
&& params_.index != "idx") {
os << "\\sindex[";
os << escape(params_.index);
os << escape(params_.index);
os << "]{";
} else {
os << "\\index";