Flag "IgnoreWhiteSpace" in GetDifference (too most, as "Ignore trim whitespace" checked button in Diff tab in Visual Studio).