Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

Commit bec937e

Browse files
committed
Backslash-u encode non-ascii characters
Issue #3474
1 parent b4278a1 commit bec937e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6952,7 +6952,7 @@
69526952
txt.setAttribute("cm-text", "\t");
69536953
builder.col += tabWidth;
69546954
} else if (m[0] == "\r" || m[0] == "\n") {
6955-
var txt = content.appendChild(elt("span", m[0] == "\r" ? "" : "", "cm-invalidchar"));
6955+
var txt = content.appendChild(elt("span", m[0] == "\r" ? "\u240d" : "\u2424", "cm-invalidchar"));
69566956
txt.setAttribute("cm-text", m[0]);
69576957
builder.col += 1;
69586958
} else {

0 commit comments

Comments
 (0)