Move line_identat to text api and add a test