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

Function splitSpaces

static/mergely/lib/codemirror.js:7036–7041  ·  view source on GitHub ↗
(old)

Source from the content-addressed store, hash-verified

7034 }
7035
7036 function splitSpaces(old) {
7037 var out = " ";
7038 for (var i = 0; i < old.length - 2; ++i) out += i % 2 ? " " : "\u00a0";
7039 out += " ";
7040 return out;
7041 }
7042
7043 // Work around nonsense dimensions being reported for stretches of
7044 // right-to-left text.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected