Remove unsused newlines
This commit is contained in:
parent
d04a9bece6
commit
e68954467c
|
@ -99,9 +99,8 @@ function create_header($cfg, $body) {
|
|||
$header = str_replace("%t", $body->event_title, $cfg["export"]["header"]);
|
||||
$header = str_replace("%d", date("Y-m-d"), $header);
|
||||
$header = str_replace("%r", $body->vote_round, $header);
|
||||
$header = "\n\n" . $header .
|
||||
"\n\nAbstimm-ID | Stimme(n)" .
|
||||
"\n###############################################################################\n";
|
||||
$header = $header . "\n\nAbstimm-ID | Stimme(n)" .
|
||||
"\n###############################################################################\n";
|
||||
return $header;
|
||||
}
|
||||
|
||||
|
@ -112,7 +111,6 @@ function create_text_file($cfg, $body) {
|
|||
$line = $vote->hash . " | " . implode(", ", $vote->vote) . "\n";
|
||||
file_put_contents($file_path, $line, FILE_APPEND);
|
||||
}
|
||||
file_put_contents($file_path, "\n\n\n", FILE_APPEND);
|
||||
shell_exec("gpg --sign " . $file_path);
|
||||
sync_command($cfg, $file_path);
|
||||
return trim(shell_exec("/usr/bin/sha256sum " . $file_path. " | awk '{ print $1 }'"));
|
||||
|
|
Loading…
Reference in a new issue