Fixed parsing to handle multiline quotes correctly.