Fixed a bug that made the diff look strange that was caused by a tag being started within a diff but not closed within it.