Limit end-tag matching to the current line to work around bugs in the output from...