Re: [Doxygen-develop] Problem with default values
Brought to you by:
dimitri
From: Robert D. <rcd...@gm...> - 2013-06-03 21:13:55
|
On Mon, Jun 3, 2013 at 4:01 PM, Robert Dailey <rcd...@gm...> wrote: > Thanks for the information guys, I'm still learning the code base. I > submitted a patch here to add some new config variables: > https://bugzilla.gnome.org/show_bug.cgi?id=701550 > > However, I need to re-post the patch with changes to the XML file > instead. Will the VS9 project re-generate the file for me? Please let > me know what else I'm doing wrong in the patch so I can correct it. > Thanks again guys. Ok, I took a lucky guess on generating the file. I ran: configgen.py config.xml > configoptions.cpp I notice however that the description string isn't manually word-wrapped like the other options. Here is my new XML code: <option type='string' id='WARN_STRING' format='string' docs=' The string that is prefixed to each warning that will be printed. A space is automatically placed between the prefix and the message that follows. ' defval='Warning:'/> <option type='string' id='ERROR_STRING' format='string' docs=' The string that is prefixed to each error that will be printed. A space is automatically placed between the prefix and the message that follows. ' defval='Error:'/> And the code output is: //---- cs = cfg->addString( "WARN_STRING", "The string that is prefixed to each warning that will be printed. A space is automatically placed between the prefix and the message that follows." ); cs->setDefaultValue("Warning:"); //---- cs = cfg->addString( "ERROR_STRING", "The string that is prefixed to each error that will be printed. A space is automatically placed between the prefix and the message that follows." ); cs->setDefaultValue("Error:"); Since I'm sending plain text email, the mail server probably word wraps my code snippets so you won't be able to see the effects. But notice no literal '\n' in the string... |