Questions tagged [lf]

Line Feed is a special character (unicode U+000A).

Line Feed is a special character (unicode U+000A), (ASCII: '\n', 0x0A, 10 in decimal). Line feed (LF) and carriage return (CR) are closely associated to represent end of line (EOL).

79 questions
34
votes
1 answer

Carriage Return, Line Feed and New Line

What are the differences among Carriage Return, Line Feed and New line? Does it depend on OS? Why do we need to use all of them just for getting to next line?
arvind.mohan
  • 894
  • 2
  • 11
  • 23
24
votes
4 answers

Is there anyway to get TortoiseSVN to leave EOL (line endings) as is?

I'm checking out files that have Linux style line endings (just LF char). When I check out a file with TortoiseSVN in Windows, it converts the line endings to Windows style (CR+LF). I've tried adding the lines to the subversion config file to force…
Brent212
  • 1,835
  • 4
  • 19
  • 23
17
votes
4 answers

How to turn off Git warnings "LF will be replaced by CRLF"?

I am working on Windows, but may also work on Unix, so I don't need to store Windows line endings. I just want to suppress the warning. I found these related Stack Overflow questions: With Git, how do I turn off the "LF will be replaced by CRLF"…
B Seven
  • 44,484
  • 66
  • 240
  • 385
16
votes
2 answers

Do I really need to specify all binary files in .gitattributes

I've read Git documentation that shows that I can explicitly set certain files to be treated as text, so their line endings are automatically changed or as binary to ensure that they are untouched. However, I have also read that Git is pretty good…
Muhammad Rehan Saeed
  • 35,627
  • 39
  • 202
  • 311
12
votes
2 answers

Change Line Feeds from CRLF to LF in Eclipse

I recently noticed that the line-feeds of files in my project are CRLF but I want them as LF.(I get the following message from GIT GUI : "UTF-8 Unicode text, with CRLF line terminators" How can I solve this problem?
Berkay Özerbay
  • 149
  • 1
  • 1
  • 6
11
votes
2 answers

Avoid "No newline at end of file" in git diff

I'm quite sure I understand what No newline at end of file means. I want to provide a pull request of a branch which I created long time ago and rebased (commits might be from the time before .gitattributes has been added). I see that some .java…
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
9
votes
3 answers

swing substance look&feel download

Where do I download Substance L&F for Swing?
milan
  • 2,355
  • 2
  • 23
  • 38
8
votes
2 answers

git and CR vs LF (but NOT CRLF)

This may sound like a redundant question (and may very well be a redundnant question) but I can't find the answer. Here's the situation: My application is creating text files that have CR's as line endings. More specifically I'm not explicitly…
Josh
  • 145
  • 1
  • 7
7
votes
1 answer

How to specify line endings (CRLF)

We're using Swagger Codegen 2.4.5 to generate models from our API. Everything is working exactly as we need with one relatively minor exception. We're generating C# models, and as per windows these are typically stored with CRLF line endings.…
Simon Laing
  • 1,194
  • 7
  • 18
6
votes
2 answers

Set default line ending in Java

I'm working with Java in a multi-platform environment (Windows + Linux). Whatever text files we produce, however, should use LF as their EOL sequence. Is there a way I can force Java to use this EOL sequence regardless on the platform I'm running a…
user1313142
  • 61
  • 1
  • 3
5
votes
2 answers

How to properly recognize different line endings in C?

I guess the title speaks for itself. I am coding a C program on Windows 7, using g++ and Notepad++, which compares content of files. Content of the file: simple file with lines File has line endings in windows style CRLF. When I count the length…
Horkyze
  • 349
  • 2
  • 13
4
votes
2 answers

How to change existing line ending CRLF to LF and successfully commit it to repository

In my project, there are many kinds of environments (Windows, Linux, Mac OS). There are some people initially having wrong setting for Git, so in the git repository, some files have been mixed up with CRLF (I want all the files in git repo to be…
user12346471
  • 51
  • 2
  • 6
3
votes
1 answer

Why does VSCode insert carriage return marked by ^M in gitt diff?

I'm running Ubuntu on WSL2 and VSCode on top of that. Although I have the "LF" setting on VSCode, whenever I save the file, VSCode insists on inserting a carriage return that gets marked as ^M with git diff. Check it out: diff --git…
3
votes
1 answer

How to change end-of-line conventions?

I have what I thought would be a simple task. I need to create a text file that has uses the unix LF convention at the end of a line. However, when I attempt to accomplish this using pandas .to_csv, I end up with CR LF. This wouldn't be a problem if…
Josh
  • 33
  • 7
2
votes
1 answer

IndexOutOfRangeException on decoding base64 bytes with LF characters included (>= .NET 5 only)

I have upgraded runtime from netcoreapp3.1 to NET 5 and the code which was transforming base64 bytes containing LF characters to string without errors started to crash with IndexOutOfRangeException. Behavior is the same for Windows and Linux…
idementia
  • 851
  • 1
  • 6
  • 12
1
2 3 4 5 6