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

Commit e91b84f

Browse files
committed
Line Ending Conversion Correction
Add handling for the case that an orphan carriage return character is found and for when not converting line endings.
1 parent 777641d commit e91b84f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Toolset/libraries/revidelibrary.8.livecodescript

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10683,6 +10683,7 @@ private function escape pString, pConvertLineEndings
1068310683
replace numToCodepoint(13) with "\n" in pString
1068410684
end if
1068510685
replace LF with "\n" in pString
10686+
replace numToCodepoint(13) with "\r" in pString
1068610687
//replace "<" with "&lt;" in pString
1068710688
//replace ">" with "&gt;" in pString
1068810689
replace tab with "\t" in pString

0 commit comments

Comments
 (0)