]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/comments.pm
Fix typo that led to comments being blanked
[ikiwiki.git] / 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