]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Fix typo that led to comments being blanked
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Tue, 18 Nov 2008 10:25:10 +0000 (10:25 +0000)
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Thu, 11 Dec 2008 21:14:02 +0000 (21:14 +0000)
IkiWiki/Plugin/comments.pm

index b5773554560cb155d2c576d7f5aaac5787a8cd48..9359e948786c0b2d944dd29a0351de30a0f3c7cc 100644 (file)
@@ -232,7 +232,7 @@ sub sessioncgi ($$) { #{{{
        my $body = $form->field('body') || '';
        $body =~ s/\r\n/\n/g;
        $body =~ s/\r/\n/g;
-       $body = "\n" if $body !~ /\n$/;
+       $body .= "\n" if $body !~ /\n$/;
 
        unless ($allow_directives) {
                # don't allow new-style directives at all