After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 627795 - Some functions cannot be viewed in Assistant.
Some functions cannot be viewed in Assistant.
Status: RESOLVED FIXED
Product: devhelp
Classification: Applications
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: devhelp-maint
devhelp-maint
Depends on:
Blocks:
 
 
Reported: 2010-08-24 05:56 UTC by Eiichi Sato
Modified: 2010-08-28 08:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for the problem. (1.19 KB, patch)
2010-08-24 05:56 UTC, Eiichi Sato
none Details | Review

Description Eiichi Sato 2010-08-24 05:56:18 UTC
Created attachment 168609 [details] [review]
patch for the problem.

I have a problem Assistant shows a blank page for some keywords,
such as "g_str_hash" or "g_array_free".

`devhelp -a g_str_hash` should reproduce this bug.
Other affected functions include: "g_timer_destroy" "g_ptr_array_foreach"

The current implementation of Assistant tries to extract part of 
the *.html file, by searching for "<pre class=\"programlisting" 
and "<div class=\"refsect". The problem is, there are no "<div class=\"refsect"s 
for functions documented at the bottom of the *.html files.

Attached a small patch as a workaround. This patch tries to search 
for "<div class=\"footer" if there is no corresponding "<div class=\"refsect".

This workaround works, but will result in 3 unmatched "</div>" 
tags to be printed in the generated html code. I think this can be removed by 
repeating g_strrstr 3 times, if really needed.

I Hope this helps.
Comment 1 Frederic Peters 2010-08-28 08:10:23 UTC
Thanks for your patch, I applied it to both 2.32 and master.