diff --git a/doc/rpm-build/checkout-build-archives.php b/doc/rpm-build/checkout-build-archives.php index f9fc191837..18d1423325 100755 --- a/doc/rpm-build/checkout-build-archives.php +++ b/doc/rpm-build/checkout-build-archives.php @@ -159,6 +159,11 @@ function do_editsvnchangelog() $cmd = $config['editor'].' '.escapeshellarg($logfile); passthru($cmd); $config['changlog'] = file_get_contents($logfile); + // remove trailing newlines + while (substr($config['changelog'],-1) == "\n") + { + $config['changelog'] = substr($config['changelog'],0,-1); + } // allow user to abort, by deleting the changelog if (strlen($config['changlog']) <= 2) {