MCPcopy Index your code
hub / github.com/csev/py4e / buildTokenSplitSpaces

Function buildTokenSplitSpaces

tools/pythonauto/static/codemirrorepl/codemirror.js:5763–5773  ·  view source on GitHub ↗
(inner)

Source from the content-addressed store, hash-verified

5761 }
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 };
5773 }
5774
5775 // Work around nonsense dimensions being reported for stretches of
5776 // right-to-left text.

Callers 1

buildLineContentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected