Re: [Doxygen-develop] Problem with default values
Brought to you by:
dimitri
From: Philipp M. <phi...@ge...> - 2013-06-04 01:34:46
|
Robert Dailey <rcd...@gm...> writes: > Hi, > > I'm adding some new config options to Doxygen. Here is my code: > > > cs = cfg->addString( > "WARN_STRING", > "The string that is prefixed to each warning that > will be printed." > ); > cs->setDefaultValue("Warning: "); > > Notice I have a trailing space after the colon for the default value. > I noticed that after ConfigString::substEnvVars() is called, this > space is removed. I'd like to be able to keep the spaces in the > default value. How can I do this? The responsible code for stripping is in line 2843 in config.cpp. The whole substitution process seems a little bit awkward and fixing it might be more involved. NB: To add a config variable you need to add it to the config.xml file and not to the configoptions.cpp file. Don't forget to rerun configgen.py. It is really unfortunate that the file is commited and not generated during the build process. |