Added multiline support and more intelligenet detection of the quote structure