Herbert Voss wrote: > Michael Schmitt wrote: > >> - The file format for tables is absolutely bloated. Can't we suppress >> tags that have >> default values (e.g. endfoot="false" or width="0pt" )? Two tiny >> tables => >1500 lines in LyX file!!! > > > please try the attached patch. It decreases the filesize of docs with > a lot of tables! There should be no problem, because the readNew(), > which is not changed, follows a logical structure: a not given option > is set to it's default.
I agree we need something like that, but wouldn't it be safer to do something like LyXTabular defaulttab; + if (rotate != defaulttab.rotate) + os << write_attribute("rotate", tostr(rotate)); I'm not sure whether what I propose is clear enough (it is time to go to bed here too), but the idea is to ensure robustness wrt change of default values (this is basically what is done for lyxrc) JMarc