fixed a bug of not displaying text nodes correctly in displayall, now if a node has text node as a single child, just display the parent node.