I figured it was something like that.  In the future you might just save the file with your editor to strip whitespace and commit that change, then make your fix as a separate commit.  Not a huge deal, but helps separate cosmetic from logic changes.