gen_input: bugfix about Tab treatment