summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/otl.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/otl.pm b/IkiWiki/Plugin/otl.pm
index 40c529761..314ed28ad 100644
--- a/IkiWiki/Plugin/otl.pm
+++ b/IkiWiki/Plugin/otl.pm
@@ -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};
} # }}}