diff-match-patch
diff-match-patch copied to clipboard
diff_cleanupSemantic cleans last newline incorrect
The cleaner methodes like diff_cleanupSemantic not correct the last newline like expected. Sometimes (by multiple line insert/delete) the result grabs a newline character from the line before, and cut his own of. It would be better if complete lines are inserted/deleted. I made my own cleaner to correct this and I can post it here, but it should be done in the diff_cleanup.
(tested only with the cs code)
How it is now
After correction