[LyX/master] Increment layout format.
Richard Kimberly Heck
rikiheck at lyx.org
Sun May 3 02:56:55 UTC 2020
commit 9bcb243ec65fe3af355d0e3ed8b61ab823f8afe5
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date: Sat May 2 23:14:19 2020 -0400
Increment layout format.
---
lib/scripts/layout2layout.py | 7 +++++--
src/TextClass.cpp | 2 +-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/lib/scripts/layout2layout.py b/lib/scripts/layout2layout.py
index 333ef1b..5b7b4ff 100644
--- a/lib/scripts/layout2layout.py
+++ b/lib/scripts/layout2layout.py
@@ -11,7 +11,7 @@
# This script will update a .layout file to current format
# The latest layout format is also defined in src/TextClass.cpp
-currentFormat = 80
+currentFormat = 81
# Incremented to format 4, 6 April 2007, lasgouttes
@@ -268,6 +268,9 @@ currentFormat = 80
# Incremented to format 80, 12 August 2019 by spitz
# New float option Requires
+# Incremented to format 80, 12 August 2019 by rikiheck
+# New tag GuiName for counters
+
# Do not forget to document format change in Customization
# Manual (section "Declaring a new text class").
@@ -517,7 +520,7 @@ def convert(lines, end_format):
i += 1
continue
- if format >= 65 and format <= 79:
+ if format >= 65 and format <= 80:
# nothing to do.
i += 1
continue
diff --git a/src/TextClass.cpp b/src/TextClass.cpp
index 4058815..c8fbfaf 100644
--- a/src/TextClass.cpp
+++ b/src/TextClass.cpp
@@ -62,7 +62,7 @@ namespace lyx {
// You should also run the development/tools/updatelayouts.py script,
// to update the format of all of our layout files.
//
-int const LAYOUT_FORMAT = 80; // spitz: Requires for floats
+int const LAYOUT_FORMAT = 81; // rikiheck: GuiName for counters
// Layout format for the current lyx file format. Controls which format is
More information about the lyx-cvs
mailing list