Newspaper publisher McClatchy Co. said Wednesday that most of its lenders have agreed to refinance its debt and that it cut enough costs to turn a profit in the fourth quarter, even as advertising continued to slide.

McClatchy shares jumped 11 percent in morning trading.