On Mon, Jun 3, 2013 at 4:01 PM, Robert Dailey <[email protected]> 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...

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