GNOME Bugzilla – Bug 168384
regex for Since: is too strict
Last modified: 2005-03-03 13:21:58 UTC
In GIMP we use "Since: GIMP 2.2" to mark the API version. Just using "Since: 2.2" as GTK+ does, turned out to be confusing when people work with both the GIMP and GTK+ API docs when writing plug-ins. Unfortunately though, the regex which is used in gtkdoc-mkdb to generate the role attribute of the indexterm is rather strict and only matches "GIMP", stripping off the actual version number. As a result we can not generate an index of new symbols using role-profiling. Applying a very simple change to gtkdoc-mkdb fixes this problem and makes gtkdoc a lot more useful to us (and probably for other projects as well). I'll attach a patch against CVS in the hope that you will apply it.
Created attachment 37895 [details] [review] only strip leading and trailing whitespace of the Since: symbol
Looks good to me.
Does that mean that I should commit the change to CVS or am I waiting for one of the gtk-doc hackers to do that?
comitting it should be fine
2005-02-26 Sven Neumann <sven@gimp.org> * gtkdoc-mkdb.in (MakeIndexterms): allow space in Since: keywords, only strip leading and trailing whitespace (bug #168384).
Thanks. I assume this is fixed then.