Try to fix selector-newline rule.

Fixes #490.

This could probably be simplified, but I just wanted to get a working solution. If anyone wants to improve this, please, go ahead. But it seems to work properly.