President pardons jailed editor