brandonbloom / fipp

Fast Idiomatic Pretty Printer for Clojure
525 stars 44 forks source link

Parasitic newline at the end of the output. #22

Closed MIvanchev closed 9 years ago

MIvanchev commented 9 years ago

This might be intentional but it's not consistent with Clojure's pprint. The code

(str (with-out-str (fipp.edn/pprint 1)) "This should be on the same line!")

generates the string "1\r\nThis should be on the same line!". I regard this as parasitic because it's none of fipp's business what comes after the output :)

brandonbloom commented 9 years ago

This is intentional. Feel free to re-open this issue if the behavior is problematic in any way that clojure.string/trim can't solve.