From: Joey Hess Date: Wed, 12 Dec 2007 18:41:21 +0000 (-0500) Subject: * Ensure that web edited pages always end in a newline. X-Git-Tag: 2.16~52 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/c06643a43555ba9d2a24b1177c2c9f68cf994432?ds=sidebyside * Ensure that web edited pages always end in a newline. --- diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 567fa85be..33e670eac 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -552,6 +552,7 @@ sub cgi_editpage ($$) { #{{{ }); $content=~s/\r\n/\n/g; $content=~s/\r/\n/g; + $content.="\n" if $content !~ /\n$/; $config{cgi}=0; # avoid cgi error message eval { writefile($file, $config{srcdir}, $content) }; diff --git a/debian/changelog b/debian/changelog index e4d4083a9..5f05f7a0f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -24,6 +24,7 @@ ikiwiki (2.16) UNRELEASED; urgency=low so that more than one plugin can use this hook. I believe this is a safe change, since only passwordauth uses this hook. (If some other plugin already used it, it would have broken passwordauth!) + * Ensure that web edited pages always end in a newline. -- Joey Hess Mon, 03 Dec 2007 14:47:36 -0500