U4-451 - Inconsistent line endings in template files created by Umbraco

Created by Sebastiaan Janssen 19 Aug 2012, 14:52:58 Updated by Shannon Deminick 08 Jan 2014, 06:21:42

When opening a master page in Visual Studio I get the following warning:

The line endings in de following file are not consistent. Do you want to normalize the line endings?

Looking at the line endings of a new template file, I can see that they are indeed inconsistent:

<%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>CRLF LF <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">LF LF </asp:Content>CRLF

Should be fixed by using the .NET framework line ending constant System.Environment.NewLine.

''Originally created on CodePlex by [michielvoo|http://www.codeplex.com/site/users/view/michielvoo]'' on 10/5/2011 3:27:18 PM [Codeplex ID: 30525 - Codeplex Votes: 4]

Comments

Michiel van Oosterhout 10 Oct 2012, 21:49:40

Pull request: http://umbraco.codeplex.com/SourceControl/network/forks/michielvoo/UmbracoU4451/contribution/3482


Sebastiaan Janssen 19 Dec 2013, 07:38:05

Fixed with pull request: https://github.com/umbraco/Umbraco-CMS/pull/239


Priority: Normal

Type: Cosmetics

State: Fixed

Assignee:

Difficulty: Very Easy

Category:

Backwards Compatible: True

Fix Submitted: Pull request

Affected versions:

Due in version: 6.2.0, 7.0.2

Sprint:

Story Points:

Cycle: