Multiline rule functionality