# development/tools/updatelayouts.sh script to update all
# layout files to the new format.
-currentFormat = 35
+currentFormat = 36
def usage(prog_name):
def read(source):
" Read input file and strip lineendings."
- lines = source.read().splitlines()
+ lines = source.read().splitlines() or ['']
lines[0] = trim_bom(lines[0])
return lines
i += 1
continue
+ if format == 35:
+ i += 1
+ continue
+
if format == 34:
match = re_InsetLayout2.match(lines[i])
if not match:
i += 1
+ if only_comment:
+ lines.insert(i, "Format 2")
if usemodules:
i = formatline + 1
for mod in usemodules: