diff --git a/src/Spout/Reader/XLSX/Helper/SharedStringsHelper.php b/src/Spout/Reader/XLSX/Helper/SharedStringsHelper.php index 4d97ee45..a334bb1c 100644 --- a/src/Spout/Reader/XLSX/Helper/SharedStringsHelper.php +++ b/src/Spout/Reader/XLSX/Helper/SharedStringsHelper.php @@ -234,11 +234,6 @@ protected function extractTextValueForNodes($textNodes) $textValue = ''; foreach ($textNodes as $nodeIndex => $textNode) { - if ($nodeIndex !== 0) { - // add a space between each "t" node - $textValue .= ' '; - } - $textNodeAsString = $textNode->__toString(); $shouldPreserveWhitespace = $this->shouldPreserveWhitespace($textNode); diff --git a/tests/resources/xlsx/one_sheet_with_shared_strings_containing_text_and_hyperlink_in_same_cell.xlsx b/tests/resources/xlsx/one_sheet_with_shared_strings_containing_text_and_hyperlink_in_same_cell.xlsx index 08527df0..8de03588 100644 Binary files a/tests/resources/xlsx/one_sheet_with_shared_strings_containing_text_and_hyperlink_in_same_cell.xlsx and b/tests/resources/xlsx/one_sheet_with_shared_strings_containing_text_and_hyperlink_in_same_cell.xlsx differ