Note:

You are viewing a development version of the library. Goto the latest version.

let split_newline ?(do_trim=true) str =
  let lst = nsplit str '\n' in
    if do_trim then
      List.map trim lst
    else
      lst