Skip to content

Commit

Permalink
fix: update \r ASCII/UTF
Browse files Browse the repository at this point in the history
  • Loading branch information
89287 authored and 89287 committed Aug 22, 2024
1 parent 584c9a7 commit 6f31824
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ooxml/XSSF/Streaming/SheetDataWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -471,12 +471,19 @@ protected void OutputQuotedString(string s)
break;
// Special characters
case '\n':
if(counter > last)
{
WriteAsBytes(GetSubArray(chars, last, counter - last));
}
WriteAsBytes("
");
last = counter + 1;
break;
case '\r':
if (counter > last)
{
WriteAsBytes(GetSubArray(chars, last, counter - last));
}
WriteAsBytes("
");
WriteAsBytes("
");
last = counter + 1;
break;
case '\t':
Expand Down

0 comments on commit 6f31824

Please sign in to comment.