I just double checked, I think I may have been wrong. I think this does mangle whitespace in other modes going forward and I think I just didn't notice as I checked with a buffer that was already open. Sorry for the confusion, do you know how to set whitespace-settings locally to a buffer?