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

Inserting endline into a stringstream

We know that when inserting \n in a file stream, the appropriate end-of-line sequence for the system will be written …

c++ newline stringstream end-of-line
Newline in <p:confirm message>

Is there a way to put a new line in the message of <p:confirm> component? <p:…

jsf jsf-2 primefaces newline confirm
How do I print output without a trailing newline in Rust?

The macro println! in Rust always leaves a newline character at the end of each output. For example println!("Enter …

rust newline println
How to get UITextView to respect newlines in Interface Builder?

I have a simple app with a UITextView embedded into a UIScrollView. Interface Builder won't let me add multiple newlines …

iphone interface-builder newline uitextview
Replace <br /> in a textarea with a line separator ( Javascript )

I guess this will be answered in two minutes but I am not able to google out a solution. Tried: …

javascript jquery newline cakephp-2.1
How to count the number of lines in an Objective-C string (NSString)?

I want to count the lines in an NSString in Objective-C. NSInteger lineNum = 0; NSString *string = @"abcde\nfghijk\nlmnopq\nrstu"; NSInteger …

objective-c cocoa newline enumeration
Print a carriage return in java on windows on console

On my OS X machine, the following line gives me a nice and easy way to track the state of …

java windows newline carriage-return system.out
PHP Regex: How to match \r and \n without using [\r\n]?

I have tested \v (vertical white space) for matching \r\n and their combinations, but I found out that \v …

php regex newline pcre
java new line replacement

I am wondering about why I don't get the expected result with this one: String t = "1302248663033 <script language='javascript'&…

java newline replaceall
Git core.safecrlf different behavior on files with same line endings

I have Windows machine with VS project and I use both Visual Studio and tools from Cygwin environment including Git. …

windows git cygwin newline core.autocrlf