MCPcopy Create free account
hub / github.com/TruthHun/BookStack / split

Function split

static/editor.md/lib/codemirror/lib/codemirror.js:6825–6830  ·  view source on GitHub ↗
(old)

Source from the content-addressed store, hash-verified

6823
6824 function buildTokenSplitSpaces(inner) {
6825 function split(old) {
6826 var out = " ";
6827 for (var i = 0; i < old.length - 2; ++i) out += i % 2 ? " " : "\u00a0";
6828 out += " ";
6829 return out;
6830 }
6831 return function(builder, text, style, startStyle, endStyle, title) {
6832 inner(builder, text.replace(/ {3,}/g, split), style, startStyle, endStyle, title);
6833 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected