The _extract_from_zip and _extract_from_text functions currently expect filenames in a transect group to be formatted without newline characters. This expectation is problematic because typical zip operations and file generation processes often include newline characters in filenames.
Expected Behavior
The functions should be able to correctly handle filenames that include newline characters.
Actual Behavior
When newline characters are included in filenames, the functions do not process the files correctly.
Steps to Reproduce
Create a zip file with filenames that include newline characters.
Attempt to process the zip file using the _extract_from_zip function.
Observe that the function fails to handle the files correctly.
Possible Solution
Adjust the filename parsing logic in both functions to strip newline characters or appropriately handle them during processing.
Description
The
_extract_from_zip
and_extract_from_text
functions currently expect filenames in a transect group to be formatted without newline characters. This expectation is problematic because typical zip operations and file generation processes often include newline characters in filenames.Expected Behavior
The functions should be able to correctly handle filenames that include newline characters.
Actual Behavior
When newline characters are included in filenames, the functions do not process the files correctly.
Steps to Reproduce
_extract_from_zip
function.Possible Solution
Adjust the filename parsing logic in both functions to strip newline characters or appropriately handle them during processing.
Additional Context