From b9a9312e2dd42e1ac32aacf936cb6655b358e844 Mon Sep 17 00:00:00 2001 From: SpikedCola Date: Fri, 29 Aug 2025 22:52:38 -0400 Subject: [PATCH] fix: remove 0x09, 0x0a, 0x0d characters from list of control characters. this fixes an issue where excel complains about "unreadable content" if a cell contains a "\n". these characters were originally excluded from the list, but were added by mistake in commit 250394d. --- src/PhpSpreadsheet/Shared/StringHelper.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/PhpSpreadsheet/Shared/StringHelper.php b/src/PhpSpreadsheet/Shared/StringHelper.php index a354bf8e36..0f4a3ef511 100644 --- a/src/PhpSpreadsheet/Shared/StringHelper.php +++ b/src/PhpSpreadsheet/Shared/StringHelper.php @@ -19,11 +19,8 @@ class StringHelper "\x06", "\x07", "\x08", - "\x09", - "\x0a", "\x0b", "\x0c", - "\x0d", "\x0e", "\x0f", "\x10", @@ -53,11 +50,8 @@ class StringHelper '_x0006_', '_x0007_', '_x0008_', - '_x0009_', - '_x000A_', '_x000B_', '_x000C_', - '_x000D_', '_x000E_', '_x000F_', '_x0010_',