]> git.lyx.org Git - features.git/commitdiff
Merge branch 'breakspace'
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 16 Nov 2022 09:22:11 +0000 (10:22 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 16 Nov 2022 09:22:11 +0000 (10:22 +0100)
This branch improves handling of spaces on display (see #10117):
* caret is correctly shown in the middle of double spaces in justified rows;

* sequence spaces are correctly shown at the end of rows before
  automatic row breaks.

Moreover, this branch:
* streamlines the code that handles spaces in row breaking

* improves display in Qt4 : although the improvements outlined above
  are not present in Qt4 for monospaced fonts, some dsplay glitches
  are resolved.

* improves performance for very long paragraphs (#12598).

3rdparty/libiconv/CMakeLists.txt
src/tex2lyx/text.cpp

index 39beb96fbf66bed6be220d51f89f5209a5aca07b..12d5446a129d4b3437455ccb1c272e8abd1087e2 100644 (file)
@@ -14,6 +14,9 @@ if (POLICY CMP0069)
     set(LYX_IPO_SUPPORTED YES)
   endif()
 endif()
+if (POLICY CMP0075)
+  cmake_policy(SET CMP0075 NEW)
+endif()
 
 set(CMAKE_MODULE_PATH .)
 include ( configure.cmake )
index e11d0a5becbe9e7f9675dcf6eb68dffd080ea01c..2ee2ada56acfa00fbbb8b30f84cc83d7f6391f17 100644 (file)
@@ -3742,7 +3742,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                        continue;
                }
 
-               if (t.cs() == "appendix") {
+               if (t.cs() == "appendix" && !context.in_list_preamble) {
                        context.add_par_extra_stuff("\\start_of_appendix\n");
                        // We need to start a new paragraph. Otherwise the
                        // appendix in 'bla\appendix\chapter{' would start