Fix spurious conversion of newlines to li in ul during tidying.