]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/otl.pm
fix
[git.ikiwiki.info.git] / IkiWiki / Plugin / otl.pm
index 40c52976171f901e05a576ee80e330b8c139b52b..314ed28ad07061a90a110257800c81f5a46906d3 100644 (file)
@@ -21,8 +21,8 @@ sub filter (@) { #{{{
                "smileys/star_on.png", 0);
        my $unchecked=IkiWiki::htmllink($params{page}, $params{page},
                "smileys/star_off.png", 0);
-       $params{content}=~s/^(\s+)\[X\]\s/${1}$checked /mg;
-       $params{content}=~s/^(\s+)\[_\]\s/${1}$unchecked /mg;
+       $params{content}=~s/^(\s*)\[X\]\s/${1}$checked /mg;
+       $params{content}=~s/^(\s*)\[_\]\s/${1}$unchecked /mg;
         
        return $params{content};
 } # }}}