summaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-10-01 17:19:16 +0200
committerJonas Smedegaard <dr@jones.dk>2010-10-01 17:19:16 +0200
commit43b9b69f53ea805e7d38af1bf41e016402c73977 (patch)
treef87e3acd4dd8a1f95eb0efa2f3fbd7ec653dd2b1 /perl
parent124d0ff1cd61ed4e4f5844352118b1a3e8e9bf62 (diff)
parent86cbb880ba9638924e9c7a641d74f7ea887f38f5 (diff)
Merge branch 'master' into _scs
Diffstat (limited to 'perl')
-rw-r--r--perl/IkiWiki/Plugin/h1title.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/IkiWiki/Plugin/h1title.pm b/perl/IkiWiki/Plugin/h1title.pm
index be29216..0f4dce3 100644
--- a/perl/IkiWiki/Plugin/h1title.pm
+++ b/perl/IkiWiki/Plugin/h1title.pm
@@ -15,7 +15,7 @@ sub filter(@) {
my $page = $params{page};
my $content = $params{content};
- if ($content =~ s/^\#[ \t]+(.*?)[ \t]*\#*\n//) {
+ if ($content =~ s/^\#[ \t]*(.*?)[ \t]*\#*\n//) {
$pagestate{$page}{meta}{title} = $1;
}
return $content;