Fix two bugs:
Handle the None option for rules properly.
Ignore line endings in multi line generator tests.