Skip to content

Commit 3612110

Browse files
committed
Normalize line endings
1 parent cff67fe commit 3612110

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ValveKeyValue/ValveKeyValue/Serialization/KeyValues3/KV3TextSerializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,10 @@ void WriteText(string text)
244244

245245
if (isMultiline)
246246
{
247-
writer.Write("\"\"\"\n");
248-
247+
text = text.Replace("\r\n", "\n");
249248
text = text.Replace("\"\"\"", "\\\"\"\"");
250249

250+
writer.Write("\"\"\"\n");
251251
writer.Write(text);
252252
writer.Write("\n\"\"\"");
253253
}

0 commit comments

Comments
 (0)