[TIDOC-2056] Fixed pretty print issue in ListItem