Top "Newline" questions

Newline refers to a character sequence representing a line break in text (also known as End of Line, EOL, or Line Break).

How line ending conversions work with git core.autocrlf between different operating systems

I've read a lot of different questions and answers on Stack Overflow as well as git documentation on how the …

git newline core.autocrlf
No newline after div?

Is there a way to not have a newline inserted before a div without using float: left on the previous …

html css-float newline
What are these ^M's that keep showing up in my files in emacs?

So I think it may have to do with textmate, but we work in a small team and are having …

git emacs newline
VIM Disable Automatic Newline At End Of File

So I work in a PHP shop, and we all use different editors, and we all have to work on …

vim settings newline
How can I replace newline characters using JSP and JSTL?

I have a list of bean objects passed into my JSP page, and one of them is a comment field. …

string jsp replace jstl newline
PHP Echo Line Breaks

What's the difference between \n and \r (I know it has something to do with OS), and what's the best …

php cross-platform newline eol line-breaks
JS regex to split by line

How do you split a long piece of text into separate lines? Why does this return line1 twice? /^(.*?)$/mg.exec(…

javascript regex newline
How do you search for files containing DOS line endings (CRLF) with grep on Linux?

I want to search for files containing DOS line endings with grep on Linux. Something like this: grep -IUr --color …

linux bash grep newline
Python JSON dump / append to .txt with each variable on new line

My code creates a dictionary, which is then stored in a variable. I want to write each dictionary to a …

python json append newline dump
What's up with Java's "%n" in printf?

I'm reading Effective Java and it uses %n for the newline character everywhere. I have used \n rather successfully for …

java newline printf