Jean-Marc Lasgouttes wrote:

> 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)


maybe, but I'm not sure if this is not a kind of overhead, because

we don't really have at this time a "defaulttab". It makes sense
for all options which are not of boolean and length. But especially
all boolean options don't need any default definition: they are
there (true) or not (false). This has nothing to do with a
definition of "what's the default".
Long speech, short sense: let an easy solution be easy ...


Herbert


-- 
http://www.lyx.org/help/

Reply via email to