In two-particle angular correlation measurements, jets give rise to a nearside peak, formed by particles associated to a higher-p T trigger particle. Measurements of these correlations as a function of pseudorapidity (η) and azimuthal (ϕ) differences are used to extract the centrality and p T dependence of the shape of the nearside peak in the p T range 1 < p T < 8 GeV/c in Pb-Pb and pp collisions at √ s NN = 2.76 TeV. A combined fit of the nearside peak and long-range correlations is applied to the data and the peak shape is quantified by the variance of the distributions. While the width of the peak in the ϕ direction is almost independent of centrality, a significant broadening in the η direction is found from peripheral to central collisions. This feature is prominent for the low-p T region and vanishes above 4 GeV/c. The widths measured in peripheral collisions are equal to those in pp collisions in the ϕ direction and above 3 GeV/c in the η direction. Furthermore, for the 10% most central collisions and 1 < p T,assoc < 2 GeV/c, 1 < p T,trig < 3 GeV/c, a departure from a Gaussian shape is found: a depletion develops around the center of the peak. The results are compared to A Multi-Phase Transport (AMPT) model simulation as well as other theoretical calculations indicating that the broadening and the development of the depletion are connected to the strength of radial and longitudinal flow.