Handle multi-line formats.