From: Simon McVittie Date: Tue, 18 Nov 2008 10:25:10 +0000 (+0000) Subject: Fix typo that led to comments being blanked X-Git-Tag: 2.71~135 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/57e40b9ce5345530f31f4d1b25a49ed18228a8dd?ds=inline;hp=-c Fix typo that led to comments being blanked --- 57e40b9ce5345530f31f4d1b25a49ed18228a8dd diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index b57735545..9359e9487 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -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