You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I found that after fix this issue [https://github.com//issues/1655], another issue appeared.
When the newline character in the previous file was x000D\r\n, opening it in Excel would show only one line break.
After saving with version Epp.7.5.0, x000D\r\n becomes \r\r\n, and opening it in Excel results in two line breaks. After saving in Excel, it becomes \r\n\r\n.
If it's a newly created file, there might not be an issue, but if it's a file that was handled by an older version, upgrading the plugin might cause an increase in newline characters.
I'm not sure if directly removing \r when saving the text, or adjusting \r...\r\n to \r\n, is a feasible solution.
You can use this file to test. Observe the changes in cell A3. Test-rrn.xlsx
// Read any cell and then save.
using (var excel = new ExcelPackage(newPath))
{
var sheet = excel.Workbook.Worksheets.FirstOrDefault();
var excelName = sheet.Name;
for (var i = 1; i <= 2; i++)
{
for (var j = 1; j <= sheet.Dimension.Columns; j++)
{
var cellVal = sheet.Cells[i, j].Text;
}
}
excel.Save();
}
The text was updated successfully, but these errors were encountered:
Hello, I found that after fix this issue [https://github.com//issues/1655], another issue appeared.
When the newline character in the previous file was x000D\r\n, opening it in Excel would show only one line break.
After saving with version Epp.7.5.0, x000D\r\n becomes \r\r\n, and opening it in Excel results in two line breaks. After saving in Excel, it becomes \r\n\r\n.
If it's a newly created file, there might not be an issue, but if it's a file that was handled by an older version, upgrading the plugin might cause an increase in newline characters.
I'm not sure if directly removing \r when saving the text, or adjusting \r...\r\n to \r\n, is a feasible solution.
You can use this file to test. Observe the changes in cell A3.
Test-rrn.xlsx
The text was updated successfully, but these errors were encountered: