Changed new lines to windows style CR LF in #endregion replacement