]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/shortcut.pm
improve string
[ikiwiki.git] / IkiWiki / Plugin / shortcut.pm
index 2a4a36a41764e29d7f50bcb03f50af167f32538a..1f9d0a77a4c916df706358122d0973679c1b93ed 100644 (file)
@@ -30,7 +30,7 @@ sub preprocess_shortcut (@) { #{{{
        #translators: This is used to display what shortcuts are defined.
        #translators: First parameter is the name of the shortcut, the second
        #translators: is an URL.
-       return sprintf(gettext("shortcut %s points to %s"), $params{name}, $params{url});
+       return sprintf(gettext("shortcut %s points to <i>%s</i>"), $params{name}, $params{url});
 } # }}}
 
 sub shortcut_expand ($$@) { #{{{
@@ -54,6 +54,7 @@ sub shortcut_expand ($$@) { #{{{
        my $encoded_text=$text;
        $encoded_text=~s/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg;
        
+       $text=~s/_/ /g;
        if (defined $desc) {
                $desc=~s/\%s/$text/g;
        }