Journalists have been sent to jail for protecting their sources.