From a8f08ab8e18877dd023430fc8926530244c74771 Mon Sep 17 00:00:00 2001 From: Adeodato Simó Date: Sun, 2 Mar 2008 17:29:02 +0100 Subject: Make directives generated by shortcuts accept a `desc` parameter. (cherry picked from commit 252da396bfa728b99af7c9bb304a7b5f3f6d94e6) --- IkiWiki/Plugin/shortcut.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/shortcut.pm b/IkiWiki/Plugin/shortcut.pm index fb096ecbd..c3e1f5446 100644 --- a/IkiWiki/Plugin/shortcut.pm +++ b/IkiWiki/Plugin/shortcut.pm @@ -62,6 +62,9 @@ sub shortcut_expand ($$@) { #{{{ }eg; $text=~s/_/ /g; + if (defined $params{desc}) { + $desc=$params{desc}; + } if (defined $desc) { $desc=~s/\%s/$text/g; } -- cgit v1.2.3