I have checked the original Plugin, the interim Plugin, and the latest Plugin.
The original Plugin consistently uses Carr.Ret. (code 13) and New Line (code 10) characters at the end of every line.
I have searched the
WinHttpRequest online documentation for
Properties such as
ResponseBody and
ResponseText and
Option but nothing explains or adjusts that feature, except that CRLF is a common line delimiter.
Both the interim Plugin, and the latest Plugin behave perfectly correctly, and in fact neither upset the code I was concerned about. But I still think the latest version is a cleaner solution.
In hindsight I realise that in Plugins there never are any Carr.Ret. (code 13) characters, only pairs of ANSI characters
\ &
r - doh!
Do you recall the Plugin Discussion last October about
Possible enhancement for Search and Replace (6069) in which extra CR at end of lines was a mysterious problem?
Well, I think the cause has now been discovered and fixed
As we discovered then, downloading directly from the
Plugin Store does not suffer the problem.
It is only the
WinHttpRequest ResponseBody that inserts the CR.
I have added a note to plugins:code_snippets:read_direct_from_web_page|> Read Direct From Web Page (code snippet).