@property<EOL><INDENT>def contents(self):<DEDENT>
for child in self.expr.contents:<EOL><INDENT>if isinstance(child, TexExpr):<EOL><INDENT>node = TexNode(child)<EOL>node.parent = self<EOL>yield node<EOL><DEDENT>else:<EOL><INDENT>yield child<EOL><DEDENT><DEDENT>
r"""Any non-whitespace contents inside of this TeX element.

        :return: generator of all nodes, tokens, and strings
        :rtype: Iterator[Union[TexNode,str]]

        >>> from TexSoup import TexSoup
        >>> soup = TexSoup(r'''
        ... \begin{itemize}
        ...     Random text!
        ...     \item Hello
        ... \end{itemize}''')
        >>> contents = soup.itemize.contents
        >>> next(contents)
        '\n    Random text!\n    '
        >>> next(contents)
        \item Hello
        <BLANKLINE>