On Sat, Aug 18, 2007 at 01:27:57AM -0400, Richard Heck wrote: > Martin Vermeer wrote: > > Attached my attempt. I am a complete amateur with python > > and work with layout2layout also for the first time, so... > > does this make sense? FWIW it works. > > > Well, I don't know anything about layout2layout, but I know a little > python... > > > + if format == 4: > > + # Handle conversion to long CharStyle names > > + match = re_CharStyle.match(lines[i]) > > + if match: > > + lines[i] = "InsetLayout CharStyle:%s" % (match.group(3)) > > + i = i + 1 > > > You can do i += 1 in python, here and below. > > Richard
If you say so... there are 11 more instances of this in the file, not my doing ;-) - Martin