From f22dba64c5e3bedf4b00a6a842562fb11c986fdd Mon Sep 17 00:00:00 2001 From: MatMasIt <34745996+MatMasIt@users.noreply.github.com> Date: Wed, 11 Aug 2021 11:39:28 +0200 Subject: [PATCH] Update buildreadme.php --- buildtools/buildreadme.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildtools/buildreadme.php b/buildtools/buildreadme.php index e293ef9..4329993 100644 --- a/buildtools/buildreadme.php +++ b/buildtools/buildreadme.php @@ -19,17 +19,19 @@ $poems=$matches[1]; $endB=""; $f=file("README.md"); $writeStuff=true; +$i=1; foreach($f as $line){ if(trim($line)==""){ $writeStuff=false; $endB.=$line; - foreach($poems as $p) $endB.="* ".$p."\n"; + foreach($poems as $p) $endB.="* $i ".$p."\n"; } if($writeStuff) $endB.=$line; if(trim($line)==""){ $endB.=$line; $writeStuff=true; } + $i++; } file_put_contents("README.md",$endB);