Fixed problem with elements in lists being stripped of their padding inappropriately.