This was a regression from 2.1.x in LtR mode, and it never worked correctly in RtL mode.
Fixes bug #10344.
(cherry picked from commit 07c7dae367aea2ebc6486d1cc67b11c409f2d8a0)
Since we process layouts sequentially, we export LaTeX code for the
title once we arrive to a layout that has InTitle false. If the
document then later has a layout with InTitle true, we do not
(currently) go back to add it to the title and just output it
in-place. We previously warned with LYXERR0, but since this can
cause missing or unexpected output we now warn in the GUI.
For more information, see the following lyx-devel thread:
https://www.mail-archive.com/search?l=mid&q=a65ae226-d3bd-8fc5-a93b-7bb23f1cda82%40lyx.org
(cherry picked from commit 0b1cf1330d850b21313f5e68a83bb5053e52e6ec)
The name of the layout is now included in an error message about
layouts. This will help with finding the root issue of several
documents we have.
(cherry picked from commit c949268da7a56368cf848199f37659c218a57808)
On Windows, runCommand has never returned the exit code of the
spawned process but the result of correctly closing the input handle.
Fixes#10327
(cherry picked from commit fb46b3a1ee642b66b9712c6f376f543c47a2695e)
There was an oddity in the manual that exposed a problem with the
test for the "special case" of an inset all by itself in a pargraph.
If a font change is applied to that inset, we still need to open the
paragraph.
(cherry picked from commit 3be23d18b64d1409d14e0c1c95f4192e9a23e543)
The export of compressed files to previous lyx versions failed on windows.
The change in this case is to explicitly pass the output file since we know it.
At the same time take care of the fact that lyx2lyx knows what file format
versions corresponds to each lyx version.
care of much of what we need to do for RTL languages. It does not
take care of inline language changes, probably.
(cherry picked from commit 07dcb1c525435c6f22de4314ba31150c53502429)
As of this commit, this is ineffective, since no changes have been
made to external_templates.
(cherry picked from commit daf7cd4c05f55c7eb957df7076ec91dcd2eca543)
The second argument here is the length of the string to replace,
not the position of the final character.
(cherry picked from commit 6b97f2c0751ff79fc19ea0e11b4ef957fd71324c)