follow-up to 44787, use pandas compat for platform specifics in added test
follow-up to #44787, as requested by @mroeschke in https://github.com/pandas-dev/pandas/pull/44787#issuecomment-1120292009.

Updates one added test to use `is_platform_windows()` for dealing with carriage returns. 
The Docs test fails, but I don't think that's related. Awesome, thanks for the follow up!