summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-10-01 17:19:20 +0200
committerJonas Smedegaard <dr@jones.dk>2010-10-01 17:19:20 +0200
commitdf99acda3fcb15561eebe33884d03a2bc1e3510b (patch)
treea9549c052b5d9a34cb4fc73ede07fc97a1401130
parent14e1415e1616d522991e43c2e2df579acc235c33 (diff)
parent6e1efac5c3ea676d2154dd3cb7d6e8bac009e22e (diff)
Merge branch '_nb' into allinone-nb
-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;