summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-10-01 17:19:09 +0200
committerJonas Smedegaard <dr@jones.dk>2013-10-13 00:47:51 +0200
commit9201e3addcbadea30c7888d82043fbc9b0378bc2 (patch)
tree0b7ce5690b00aef5ff47b05720d7ee07a06aab1b /IkiWiki
parent28a4dca4858f889456d71e4b25909ec0f1447d7a (diff)
Fix make space after hash optional in plugin h1title.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/h1title.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/h1title.pm b/IkiWiki/Plugin/h1title.pm
index be29216..0f4dce3 100644
--- a/IkiWiki/Plugin/h1title.pm
+++ b/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;