Skip to content

Commit

Permalink
Normalize newlines before generating copyright text
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Sep 10, 2015
1 parent 2a4f664 commit a53719a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ private static string WrapInXmlComment(string copyrightText, string filename, St

private static string GetCopyrightText(string copyrightText, string newLineText)
{
copyrightText = copyrightText.Replace("\r\n", "\n");
return string.Join(newLineText + "// ", copyrightText.Split('\n'));
}
}
Expand Down

0 comments on commit a53719a

Please sign in to comment.