Text editor correctly handles tab