A note on spanning trees with pairwise nonadjacent end-vertices