Moved empty lines logic from rules to block parser