Performance improvement for HTML formatter when there are many changes in a single line