minor multi-line detection tweak