fix regexp
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 19 Aug 2006 18:28:40 +0000 (18:28 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 19 Aug 2006 18:28:40 +0000 (18:28 +0000)
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};
 } # }}}