Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 777641d

Browse files
committed
Remove LFCR replacements
revidelibrary.8.livecodescript private function __escapeStringAndConvertLineEndings pString private function escape pString, pConvertLineEndings
1 parent c67eb42 commit 777641d

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

Toolset/libraries/revidelibrary.8.livecodescript

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5012,9 +5012,8 @@ end arrayRecurse
50125012
private function __escapeStringAndConvertLineEndings pString
50135013
replace "\" with "\\" in pString
50145014
replace quote with ("\" & quote) in pString
5015-
replace (numToCodepoint(13) & LF) with (LF & numToCodepoint(13)) in pString
5016-
replace (LF & numToCodepoint(13)) with LF in pString
5017-
replace numToCodepoint(13) with LF in pString
5015+
replace CRLF with "\n" in pString
5016+
replace numToCodepoint(13) with "\n" in pString
50185017
replace LF with "\n" in pString
50195018
return (quote & pString & quote)
50205019
end __escapeStringAndConvertLineEndings
@@ -10680,9 +10679,8 @@ private function escape pString, pConvertLineEndings
1068010679
replace quote with ("\" & quote) in pString
1068110680

1068210681
if pConvertLineEndings is true then
10683-
replace (numToCodepoint(13) & LF) with (LF & numToCodepoint(13)) in pString
10684-
replace (LF & numToCodepoint(13)) with LF in pString
10685-
replace numToCodepoint(13) with LF in pString
10682+
replace CRLF with "\n" in pString
10683+
replace numToCodepoint(13) with "\n" in pString
1068610684
end if
1068710685
replace LF with "\n" in pString
1068810686
//replace "<" with "&lt;" in pString

0 commit comments

Comments
 (0)