X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fscripts%2Flayout2layout.py;h=46a8ea6efb151d0c8262cd6005900e1d11b533a3;hb=003d675c2f3bb66f147b99def57296545d4c170e;hp=331a51f1be3a0f973545c9c3dd663d63f997c793;hpb=4b3aacd13b8d598b7a2b3a01dfa55ae214baa422;p=lyx.git diff --git a/lib/scripts/layout2layout.py b/lib/scripts/layout2layout.py index 331a51f1be..46a8ea6efb 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 = 72 +currentFormat = 76 # Incremented to format 4, 6 April 2007, lasgouttes @@ -242,6 +242,19 @@ currentFormat = 72 # Incremented to format 72, 26 March 2019 by spitz # New TextClass tag TableStyle +# Incremented to format 73, 18 April 2019 by spitz +# New InsetLayout tag MenuString + +# Incremented to format 74, 18 April 2019 by spitz +# New InsetLayout and Argument tag NewlineCmd + +# Incremented to format 75, 2 June 2019 by spitz +# New Argument tags FreeSpacing, InsertOnNewline +# New InsetLayout tag ParbreakIgnored + +# Incremented to format 76, 8 July 2019 by spitz +# New textclass tag BibInToc + # Do not forget to document format change in Customization # Manual (section "Declaring a new text class"). @@ -491,7 +504,7 @@ def convert(lines, end_format): i += 1 continue - if format >= 65 and format <= 71: + if format >= 65 and format <= 75: # nothing to do. i += 1 continue @@ -1244,13 +1257,17 @@ def main(argv): # Open files if options.input_file: source = open(options.input_file, 'rb') - else: + elif PY2: source = sys.stdin + else: + source = sys.stdin.buffer if options.output_file: output = open(options.output_file, 'wb') - else: + elif PY2: output = sys.stdout + else: + output = sys.stdout.buffer if options.format > currentFormat: error("Format %i does not exist" % options.format);