(old)
| 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 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected