Skip to content

Commit a53719a

Browse files
committed
Normalize newlines before generating copyright text
1 parent 2a4f664 commit a53719a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers/DocumentationRules/FileHeaderCodeFixProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ private static string WrapInXmlComment(string copyrightText, string filename, St
138138

139139
private static string GetCopyrightText(string copyrightText, string newLineText)
140140
{
141+
copyrightText = copyrightText.Replace("\r\n", "\n");
141142
return string.Join(newLineText + "// ", copyrightText.Split('\n'));
142143
}
143144
}

0 commit comments

Comments
 (0)