Add rules for line endings