node-html-to-text icon indicating copy to clipboard operation
node-html-to-text copied to clipboard

Formatter uses UNIX end-of-line characters

Open dmrzn opened this issue 8 years ago • 2 comments

Hi All I've noticed that the resulting text contains '\n' characters as new line characters. Could the formatter be modified the way that it would output environment-specific new line characters - LF - for Unix systems and CRLF for Windows?

dmrzn avatar Apr 06 '17 09:04 dmrzn

Why not replace all \n with \r\n in your output? Should be a simple wrapper around html-to-text.

mlegenhausen avatar Apr 06 '17 10:04 mlegenhausen

Yes, already did that. Thanks for the suggestion.

dmrzn avatar Apr 06 '17 15:04 dmrzn