Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

config file grows infinitely

(1/2) > >>

tiwag:
there is a bug somehow with the lexer configuration storage ...

each time you open & close CB the config file grows with a few empty lines in the SET2 of the lexers

has anyone changed something there recently ?

thomas:
I never understood why we need to copy all lexers (even ones that you have never used before) into the config, anyway.

I could imagine it has to do with the recent change of strings being stored as CDATA. But then, on the other hand side... I can't imagine how that could lead to empty newlines being inserted...

tiwag:
i've deleted all the lexer config from the config file and configured it new, now it doesn't grow any more  :)

tiwag:
CDATA[...]

insert any string with a ']'  ??? could this make troubles ?

excerpt from the troublemaker


--- Code: --- <SET2>
<str>
<![CDATA[a addindex addtogroup anchor arg attention                                    author b brief bug c class code date def defgroup deprecated                                    dontinclude e em endcode endhtmlonly endif endlatexonly endlink                                    endverbatim enum example exception f$ f[ f] file fn                                    hideinitializer htmlinclude htmlonly if image include ingroup                                    internal invariant interface latexonly li line link mainpage name                                    namespace nosubgrouping note overload p page par param post pre                                    ref relates remarks return retval sa section see showinitializer                                    since skip skipline struct subsection test throw todo typedef                                    union until var verbatim verbinclude version warning weakgroup                                    $ @ \  < > # { }]]>
</str>

--- End code ---

thomas:
Actually I'd expect this to work. After all, CDATA must be able to hold any kind of character data, so the xml library had better escape anything that may be a problem.

Did you insert that ']' programatically, or by hacking the xml file?

Navigation

[0] Message Index

[#] Next page

Go to full version