From 9afbd6d68df8e2c44df7c4a1fe0fb1bc43b9e4c9 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 27 Oct 2009 19:03:30 +0000 Subject: [PATCH] Update layout format. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31774 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/scripts/layout2layout.py | 12 +++++++++--- src/TextClass.cpp | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/scripts/layout2layout.py b/lib/scripts/layout2layout.py index 9584f8c454..1d4774784f 100644 --- a/lib/scripts/layout2layout.py +++ b/lib/scripts/layout2layout.py @@ -49,7 +49,7 @@ import os, re, string, sys # Rename I18NPreamble to BabelPreamble and add LangPreamble # Incremented to format 15, 28 May 2009 by lasgouttes -# Add new tag OutputFormat; modules can be conditionned on feature +# Add new tag OutputFormat; modules can be conditioned on feature # "from->to". # Incremented to format 16, 5 June 2009 by rgh @@ -64,10 +64,16 @@ import os, re, string, sys # HTMLType, HTMLClass, HTMLStyle # These are still to be documented, once everything stabilizes. +# Incremented to format 17, 12 August 2009 by rgh +# Add IfStyle and IfCounter tags for layout. + +# Incremented to format 18, 27 October 2009 by rgh +# Added some new tags for HTML output. Documentation still to follow. + # Do not forget to document format change in Customization # Manual (section "Declaring a new text class"). -currentFormat = 17 +currentFormat = 18 def usage(prog_name): @@ -256,7 +262,7 @@ def convert(lines): continue # This just involved new features, not any changes to old ones - if format == 14 or format == 15 or format == 16: + if format == 14 or format == 15 or format == 16 or format == 17: i += 1 continue diff --git a/src/TextClass.cpp b/src/TextClass.cpp index 30eeb4df31..3a9ba6c664 100644 --- a/src/TextClass.cpp +++ b/src/TextClass.cpp @@ -66,7 +66,7 @@ private: }; // Keep the changes documented in the Customization manual. -int const FORMAT = 17; +int const FORMAT = 18; bool layout2layout(FileName const & filename, FileName const & tempfile) -- 2.39.2