diff options
author | Adeodato Simó <dato@net.com.org.es> | 2008-03-02 17:29:02 +0100 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-03-02 18:04:09 -0500 |
commit | a8f08ab8e18877dd023430fc8926530244c74771 (patch) | |
tree | 86a5fd67b7d047a43d94c4781d47e5d3802957ab /IkiWiki/Plugin | |
parent | bdb57e58334afb9ac1fab45f9f9653da4e5af98f (diff) |
Make directives generated by shortcuts accept a `desc` parameter.
(cherry picked from commit 252da396bfa728b99af7c9bb304a7b5f3f6d94e6)
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/shortcut.pm | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |