s = eval("%q{a\r\nabc\r\nd\r\nab\neba}")
p s #=> “a\nabc\nd\nab\neba”
Why the same is not with below?
s = eval("%q{banana\n\rapple\nmango\rapple\n\norange\rapple}")
p s
#=> “banana\n\rapple\nmango\rapple\n\norange\rapple”
why the \r
not removed here? what should be the fix?