MCPcopy
hub / github.com/csev/py4e / split

Function split

tools/pythonauto/static/codemirrorepl/codemirror.js:5764–5769  ·  view source on GitHub ↗
(old)

Source from the content-addressed store, hash-verified

5762
5763 function buildTokenSplitSpaces(inner) {
5764 function split(old) {
5765 var out = " ";
5766 for (var i = 0; i < old.length - 2; ++i) out += i % 2 ? " " : "\u00a0";
5767 out += " ";
5768 return out;
5769 }
5770 return function(builder, text, style, startStyle, endStyle, title) {
5771 inner(builder, text.replace(/ {3,}/g, split), style, startStyle, endStyle, title);
5772 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected