When coverage upsets them, towns and counties are revoking newspapers’ lucrative contracts to print public notices.