diff --git a/src/output_latex.cpp b/src/output_latex.cpp index e3abb52fa5..d8481d5f52 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -113,7 +113,8 @@ TeXEnvironment(Buffer const & buf, lyxrc.language_command_end, "$$lang", prev_par_language->babel())) - << '\n'; + // the '%' is necessary to prevent unwanted whitespace + << "%\n"; texrow.newline(); } @@ -124,7 +125,8 @@ TeXEnvironment(Buffer const & buf, lyxrc.language_command_begin, "$$lang", par_language->babel())) - << '\n'; + // the '%' is necessary to prevent unwanted whitespace + << "%\n"; texrow.newline(); } } @@ -263,7 +265,7 @@ TeXOnePar(Buffer const & buf, Language const * const par_language = pit->getParLanguage(bparams); // The document's language Language const * const doc_language = bparams.language; - // The language that was in effect when the environemnt this paragraph is + // The language that was in effect when the environment this paragraph is // inside of was opened Language const * const outer_language = (runparams.local_font != 0) ? @@ -290,7 +292,8 @@ TeXOnePar(Buffer const & buf, os << from_ascii(subst(lyxrc.language_command_end, "$$lang", prev_language->babel())) - << '\n'; + // the '%' is necessary to prevent unwanted whitespace + << "%\n"; texrow.newline(); } @@ -343,7 +346,8 @@ TeXOnePar(Buffer const & buf, lyxrc.language_command_begin, "$$lang", par_language->babel())) - << '\n'; + // the '%' is necessary to prevent unwanted whitespace + << "%\n"; texrow.newline(); } } @@ -373,7 +377,8 @@ TeXOnePar(Buffer const & buf, if (encoding->package() == Encoding::inputenc && enc_switch.first) { runparams.encoding = encoding; if (enc_switch.second > 0) { - os << '\n'; + // the '%' is necessary to prevent unwanted whitespace + os << "%\n"; texrow.newline(); } } diff --git a/status.15x b/status.15x index b7fe674e5d..821310daf1 100644 --- a/status.15x +++ b/status.15x @@ -133,6 +133,9 @@ What's new - Fix a bug where the spellchecker skipped the first misspelled word on a second run (bug 2218). +- If the text of footnotes is in a different language than the main text, it + was not aligned correctly. This is fixed. + - Fix cut and paste of tabular cells via the external clipboard (bug 4147). - Fix undo in tabulars after pasting via the external clipboard (bug 4371).