Skip first whitespace only lines (#56534)

Parser won't crash on first empty lines anymore.
This commit is contained in:
AnturK
2021-02-03 23:21:39 +01:00
committed by GitHub
parent d4f28cfecd
commit 7eeba95ff2

View File

@@ -745,6 +745,8 @@ function checkchangelog($payload, $compile = true) {
}
if (!strlen($firstword)) {
if (count($currentchangelogblock) <= 0)
continue;
$currentchangelogblock[count($currentchangelogblock)-1]['body'] .= "\n";
continue;
}