question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

crlf vs lf in templates

See original GitHub issue

I used to be able to do dotnet new and it would create project that could be read in notepad. Since the new engine was changed this is no longer the case. There are plenty of debates that could be had about how to do this right. The new behavior may be the right default, maybe not? Maybe there should be an option?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

5reactions
sayedihashimicommented, Feb 23, 2017

I think we should change to CRLF and then see if we get any user feedback. But I don’t think this meets any bar for any release that’s locking down.

0reactions
gitfoolcommented, Apr 14, 2020

I’m trying to use a custom template on Windows but getting LF in all files, except the few specified other than text=auto in .gitattributes, so this doesn’t seem to be fixed. 😕

Not sure it’s relevant but we build the NuGet package for the custom dotnet template with dotnet sdk 3.1.201 in a Docker container on Linux.

Read more comments on GitHub >

github_iconTop Results From Across the Web

LF will be replaced by CRLF in git - What is that and is it ...
The warning asked about in this post states that "LF will be replaced by CRLF", but the scenarios described in this answer all...
Read more >
CRLF vs. LF: Normalizing Line Endings in Git
LF stands for “linefeed” – the LF control character advanced the paper one line without moving the print head. So if you wanted...
Read more >
What does 'LF will be replaced by CRLF' mean? : r/git
CR, LF and CRLF refer to different ways of storing this line-break in the file. The character (or characters) that represent a 'line-break'...
Read more >
Resolved: Git warning LF will be replaced by CRLF in file
In windows a line is represented with a carriage return (CR) and a line feed (LF) thus (CRLF). when you get code from...
Read more >
Working with line-ends special symbols LF/CRLF - Cookiecutter
The special template variable _new_lines enforces a specific line ending. Acceptable variables: '\r\n' for CRLF and '\n' for POSIX. Here is example how ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found