powered by
Checks if a string ends with a newline character. If not, a newline character is appended.
withLineEnd(x)
The input string with a newline character at the end if it was not already present.
A string.
cat(withLineEnd("Hello"))
Run the code above in your browser using DataLab