Replaces spaces in s with the optimal number of tabs. All spaces and tabs at the end of a line are removed.
String to convert.
Tab columns are tabSize spaces apart.
GC allocated string with spaces replaced with tabs; use entabber to not allocate.
assert(entab(" x \n") == "\tx\n");
entabber
See Implementation
Replaces spaces in s with the optimal number of tabs. All spaces and tabs at the end of a line are removed.