The absorptive line shape of hadronic atoms