I'm a writer first and an editor second... or maybe third or even fourth. Successful editing requires a very specific set of skills, and I don't claim to have all of them at my command.
I know a lot of reporters certainly will go to jail to defend confidential sources. Some have even gone to jail for an issue like this. But I can't say that's the norm.

