Robert Dailey <[email protected]> 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.

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Doxygen-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/doxygen-develop

Reply via email to