GNOME Bugzilla – Bug 759692
Search: a trailing space is sometimes added to the entry
Last modified: 2016-01-27 11:45:38 UTC
Try: $ devhelp --search gtk_text_iter_forward_lines There is only one search result, the exact link. But the search entry contains a trailing space, like this: "gtk_text_iter_forward_lines " I think it doesn't happen with all symbols. It looks like a g_strstrip() is needed somewhere in Devhelp, or fixing the problem at the source in GTK-Doc maybe. It anyway needs some investigation to know where the space come from.
Looking at the source .devhelp2 file it has this: <keyword type="function" name="gtk_text_iter_forward_line ()" link="GtkTextIter.html#gtk-text-iter-forward-line"/> And the character before the parentheses is not an ASCII space but a non-breaking space and it's not stripped correctly. I went the easy way and added custom handling for this precise situation. (missing a general utf-8 capable g_strstrip) commit b5c1595b450a4caec167c1b82c7c4a874405d7b6 Author: Frédéric Péters <fpeters@0d.be> Date: Wed Jan 27 12:41:17 2016 +0100 parser: handle stripping of non-breaking space before parentheses https://bugzilla.gnome.org/show_bug.cgi?id=759692