A.H. Belo posts revenue gain and a small profit