From e1840b9c2c775bdddc27c0a6bc3a72b10ae61e0f Mon Sep 17 00:00:00 2001 From: Sainan Date: Tue, 4 Jun 2024 15:56:49 +0200 Subject: [PATCH] Extract newlines more faithfully --- download.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download.php b/download.php index a321d6a..102177f 100644 --- a/download.php +++ b/download.php @@ -16,7 +16,7 @@ { echo "Downloading $name...\n"; $data = file_get_contents("https://content.warframe.com/PublicExport/Manifest/".$line); - $data = str_replace("\\r\r\n", "\\n", $data); + $data = str_replace("\\r\r\n", "\\r\\n", $data); $data = str_replace("\t", "\\t", $data); // ExportWarframes_pl & ExportWeapons_pl use raw tabs in some strings $data = json_encode(json_decode($data, true), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); file_put_contents($name, $data);