Skip to content

Commit

Permalink
Fix windows test by setting lineterminator
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrl committed Dec 11, 2024
1 parent 6e4b985 commit de3e844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haystack/components/converters/xlsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def _extract_tables(self, bytestream: ByteStream) -> Tuple[List[str], List[Dict]
metadata = []
for key in dict_or_df:
if self.table_format == "csv":
resolved_kwargs = {"index": True, "header": True, **self.table_format_kwargs}
resolved_kwargs = {"index": True, "header": True, "lineterminator": "\n", **self.table_format_kwargs}
tables.append(dict_or_df[key].to_csv(**resolved_kwargs))
else:
resolved_kwargs = {
Expand Down

0 comments on commit de3e844

Please sign in to comment.