On Wed, Jul 23, 2008 at 10:33:16AM -0400, Steve Litt wrote: > On Wednesday 23 July 2008 07:00, José Matos wrote: > > > XML will not change the current status. > > > > grep '<style name="Section"' somefile.lyx > > > > will still work and it not so different from what we have now. You need the > > '' already if you have spaces in your expression... > > The trouble is, XML tags can be anywhere -- spacing and linefeeds are > immaterial. That means you can no longer parse based on position, such as: > > /^begin_layout/ > > because technically the whole XML file could be in a single line. Or a single > tag could be split between lines.
This is formally correct, but we would pretty precisely know how (100 - \epsilon)% of all .lyx files will be formatted because LyX is more or less the only application that actually writes it. Andre'
