mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Whitespace
This commit is contained in:
parent
56f0e0c4fc
commit
507302b444
@ -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;
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user