]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/haiku.pm
fix cgiurl check
[git.ikiwiki.info.git] / IkiWiki / Plugin / haiku.pm
index fe8a782fad2ffdf5c83c4ecb0c86f269195dd2d7..5d5e8d5aaf93089fe84cc3774966f7a914aa516c 100644 (file)
@@ -4,7 +4,7 @@ package IkiWiki::Plugin::haiku;
 
 use warnings;
 use strict;
-use IkiWiki;
+use IkiWiki 2.00;
 
 sub import { #{{{
        hook(type => "preprocess", id => "haiku", call => \&preprocess);
@@ -42,9 +42,9 @@ sub preprocess (@) { #{{{
        }
                
        $haiku=~s/^\s+//mg;
-       $haiku=~s/\n/<br>\n/mg;
+       $haiku=~s/\n/<br \/>\n/mg;
        
-       return "\n\n<blockquote>$haiku</blockquote>\n\n";
+       return "\n\n<blockquote><p>$haiku</p></blockquote>\n\n";
 } # }}}
 
 1