From 8edd547b89d7379b7808fccb18834ef6a6214b90 Mon Sep 17 00:00:00 2001 From: UlrichB22 <97119703+UlrichB22@users.noreply.github.com> Date: Wed, 20 Nov 2024 13:54:22 +0100 Subject: [PATCH 1/2] Fix search result highlighting for itemlist macro --- src/moin/macros/_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/moin/macros/_base.py b/src/moin/macros/_base.py index a425a789b..5a4deae7e 100644 --- a/src/moin/macros/_base.py +++ b/src/moin/macros/_base.py @@ -222,7 +222,7 @@ def create_pagelink_list(self, pagenames, alternative, ordered=False, display="F url = str(iri.Iri(scheme="wiki", authority="", path="/" + fqname)) if display == "FullPath": - linkname = pagename + linkname = fqname elif display == "ChildPath": index = fqname.rfind("/") if index == -1: From e1ac3f7694b39c3c7dd9fb471186a4df88651464 Mon Sep 17 00:00:00 2001 From: UlrichB22 <97119703+UlrichB22@users.noreply.github.com> Date: Wed, 20 Nov 2024 13:57:48 +0100 Subject: [PATCH 2/2] Fix itemlist arguments in help-en/MoinWikiMacros --- src/moin/help/help-en/MoinWikiMacros.data | 28 +++++++++++------------ src/moin/help/help-en/MoinWikiMacros.meta | 10 ++++---- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/moin/help/help-en/MoinWikiMacros.data b/src/moin/help/help-en/MoinWikiMacros.data index e8b4c79a7..321d3136f 100644 --- a/src/moin/help/help-en/MoinWikiMacros.data +++ b/src/moin/help/help-en/MoinWikiMacros.data @@ -366,30 +366,30 @@ the "startswith" parameter is more efficient than the equivalent "regex" express {{{ Those items containing the string "Text" anywhere in the full path name: -<> +<> Those items containing the string "Text" only in the descendent's name: -<> +<> Those items containing a vowel as the 3rd-to-last character: -<> +<> }}} '''Result:''' Those items containing the string "Text" anywhere in the full path name: -<> +<> Those items containing the string "Text" only in the descendent's name: -<> +<> Those items containing a vowel as the 3rd-to-last character: -<> +<> ===== The "display" parameter ===== @@ -402,19 +402,19 @@ displays the subitems of help-en/creole. {{{ Displayed using "FullPath" (the default, see examples above): -<> +<> Displayed using "ChildPath": -<> +<> Displayed using "ChildName": -<> +<> Displayed using "UnCameled": -<> +<> Displayed using "ItemTitle": @@ -425,19 +425,19 @@ Displayed using "ItemTitle": Displayed using "FullPath": -<> +<> Displayed using "ChildPath": -<> +<> Displayed using "ChildName": -<> +<> Displayed using "UnCameled": -<> +<> Displayed using "ItemTitle": diff --git a/src/moin/help/help-en/MoinWikiMacros.meta b/src/moin/help/help-en/MoinWikiMacros.meta index 23f8cb66b..b68d88298 100644 --- a/src/moin/help/help-en/MoinWikiMacros.meta +++ b/src/moin/help/help-en/MoinWikiMacros.meta @@ -3,7 +3,7 @@ "address": "127.0.0.1", "comment": "", "contenttype": "text/x.moin.wiki;charset=utf-8", - "dataid": "3783c3fdda3b43b1a4ec0f3300c22bdb", + "dataid": "63b9dec909e04f80938585644ae7d744", "externallinks": [ "https://fontawesome.com/search?o=r&m=free", "https://moinmo.in/HelpOnMacros/Include" @@ -19,16 +19,16 @@ ], "itemtype": "default", "language": "en", - "mtime": 1730231040, + "mtime": 1732105280, "name": [ "MoinWikiMacros" ], "name_old": [], "namespace": "help-en", "rev_number": 1, - "revid": "931016b31ee144e7879f2ab37ebc3caa", - "sha1": "d9c425e1ccc9d1a9d862b50ea46848558d6028cf", - "size": 14886, + "revid": "230f1f657b5d4725b5852f58e022309a", + "sha1": "7e9fe2f63fb8f7c171f86120fd48801cc58a9afd", + "size": 14998, "summary": "", "tags": [ "macros",