trim-newline

added
1.2

ns
clojure.string

type
function

(trim-newline s)

Removes all trailing newline \
or return \\r characters from
string.  Similar to Perl's chomp.

                <pre>\r
user=> (clojure.string/trim-newline "test\
\\r")\r
"test"\r
</pre>