From 74ba4baca2c833c5d5429eb1fbd22cbf858ec7f7 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 18 Feb 2011 02:22:22 +0000 Subject: [PATCH] 4635: Localized FAQ gramplet incorrectly generates links to the wiki svn: r16661 --- src/gui/widgets/grampletpane.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/widgets/grampletpane.py b/src/gui/widgets/grampletpane.py index 990837f1f..639ca99a1 100644 --- a/src/gui/widgets/grampletpane.py +++ b/src/gui/widgets/grampletpane.py @@ -654,7 +654,12 @@ class GuiGramplet(object): return True elif link_type == 'WIKI': if event.button == 1: # left mouse - GrampsDisplay.help(handle.replace(" ", "_")) + handle = handle.replace(" ", "_") + if "#" in handle: + page, section = handle.split("#", 1) + GrampsDisplay.help(page, section) + else: + GrampsDisplay.help(handle) return True elif link_type == 'Family': family = self.dbstate.db.get_family_from_handle(handle)