check if line has a style, fixes #16