82 - Opf Classes Cannot Accept Default Values With Characte

Reported by fjardonfjardon (1262770441|%O ago)

Steps to Reproduce:
- create a normal OPF file
- use a 'default' attribute of '%s'

Example:
<property name = "plugin_cfg_pattern" type = "char *" default = "%s/%d.txt">
Pattern used to find the path to the plugin configuration file.
<doc>
Pattern used to find the path to the plugin for a specific ID.
This pattern is fed to snprintf with the following arguments:
- plugin directory
- ID
</doc>
</property>

How To Fix:
In opf_gen_class.gsl:242

. default_opt=""
. if metat = "string"
. text = " Current value is '%s'."
. if defined (default)
. text += " Default value is '%s'"
. default_opt=", \"$(default)\""
. endif
. else
. text = " Current value is $(format)."
. if defined (default)
. text += " Default value is $(default)."
. endif
. endif
printf (" $(->doc.?'':justify,block )\\\\n");
printf (" $(text:justify,block )\\\\n", self->$(name) $(default_opt));
printf ("\\\\n");

Attachments:

No files attached to this page.

Comments

Add a New Comment

Edit | Files | Tags | Print

rating: 0+x

Who's following this issue?

pieterhpieterh
martin_sustrikmartin_sustrik
CybariteCybarite
fjardonfjardon
Watch: site | category | page

Submitted by fjardonfjardon

Use one of these tags to say what kind of issue it is:

  • issue - a fault in the software or the packaging or the documentation.
  • change - a change or feature request.

Use one of these tags to say what state the issue is in:

  • open - a new, open issue.
  • closed - issue has been closed.
  • rejected - the issue has been rejected.

Use one of these tags to say how urgent the issue is:

  • fatal - the issue is stopping all work.
  • urgent - it's urgent.

All open

Most recent

Page tags: open