Browser Safari 16.4, the bug was not present in 16.3 Related: https://github.com/ajaxorg/ace/issues/5112 This bug breaks copying YAML or Python code from online code editors (Ace, CodeMirror, and Monaco). When testing, two scenarios: clipboardData.setData("text/plain", `test1\ntest2\ntest3`) Results into: test1 test2 test3 And: clipboardData.setData("text/plain", `test: 1\ntest2\ntest3`) Results into: test: 1test2test3 Eating up all the enters Example: https://jsfiddle.net/102g5phr/ (updated)
Could you please try Safari Technology Preview 167? I cannot reproduce with a newer Safari version, so I suspect that this was fixed as part of bug 250119.
<rdar://problem/107796207>
Yes, Safari Technology Preview 167 resolves the issue.