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).

68 questions
949
votes
20 answers

git replacing LF with CRLF

Running git on a Windows XP machine, using bash. I exported my project from SVN, and then cloned a bare repository. I then pasted the export into the bare repositories directory, and did a: git add -A I then got a list of messages saying: LF will…
mrblah
  • 88,033
  • 134
  • 292
  • 404
26
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
  • 734
  • 2
  • 10
  • 20
22
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,505
  • 3
  • 15
  • 22
14
votes
3 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 Stack Overflow questions that are relevant: git turn off "LF will be replaced by CRLF" warning git,…
B Seven
  • 39,557
  • 59
  • 208
  • 346
9
votes
3 answers

swing substance look&feel download

Where do I download Substance L&F for Swing?
milan
  • 2,258
  • 2
  • 21
  • 36
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
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
  • 28,236
  • 27
  • 169
  • 261
7
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?
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
4
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…
Karl Richter
  • 6,271
  • 17
  • 57
  • 120
4
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
  • 331
  • 2
  • 13
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
2 answers

Removing line feeds from file is not working

I trying to use sed to remove the linefeed from lines that contain a pattern. My lines are: Format: 0000000 InputMask: &&&&&&& OrdinalPosition: 0 …
C0ppert0p
  • 629
  • 2
  • 7
  • 20
2
votes
2 answers

R equivalent for .NET's Environment.NewLine

Is there an R equivalent for Environment.NewLine in .NET? I'm looking for a character object that would represent a new line based on the environment, e.g. CR LF ("\r\n") on Windows and LF ("\n") on Unix. I couldn't find any such thing in the R…
Narvarth
  • 345
  • 2
  • 13
2
votes
1 answer

Is there an advantage to using LF over CRLF?

I created two files containing one line of identical text. One file was set to the LF newline, while the other was set to use a CRLF newline. The file using LF as the newline character was 1 byte smaller. When writing large programs, is there an…
user7691151
1
2 3 4 5