The gritty novelist who owed his career to a cardinal