MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / newline

Function newline

static/js/codemirror/addon/format/formatting.js:83–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81
82 var out = "", lines = 0, atSol = from.ch == 0;
83 function newline() {
84 out += "\n";
85 atSol = true;
86 ++lines;
87 }
88
89 for (var i = 0; i < text.length; ++i) {
90 var stream = new CodeMirror.StringStream(text[i], tabSize);

Callers 1

formatting.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected