Fix line endings.
Support event and CSS selectors than span over multiple lines.