mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
* src/output_latex.cpp:
- prevent wrong whitespace by trailing '%' on line endings. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21743 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b4404db200
commit
6be395541c
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user