ForgeImporters/forgeimporters/google/__init__.py
def _as_text(node, chunks=None):
    """
    Similar to node.text, but preserves whitespace around tags,
    and converts <br/>s to \n.
    """
    if chunks is None:
        chunks = []
    for n in node:
        if isinstance(n, basestring):
            chunks.append(n)
        elif n.name == 'br':
            chunks.append('\n')
        else:
            _as_text(n, chunks)
    return ''.join(chunks)

    Similar to node.text, but preserves whitespace around tags,
    and converts <br/>s to \n.
    
Similar to node.text, but preserves whitespace around tags,
and converts s to \n.
Similar to node . text but preserves whitespace around tags and converts s to \ n .
def _as_text(node, chunks=None):
    if chunks is None:
        chunks = []
    for n in node:
        if isinstance(n, basestring):
            chunks.append(n)
        elif n.name == 'br':
            chunks.append('\n')
        else:
            _as_text(n, chunks)
    return ''.join(chunks)
def _as_text ( node , chunks = None ) : if chunks is None : chunks = [ ] for n in node : if isinstance ( n , basestring ) : chunks . append ( n ) elif n . name == 'br' : chunks . append ( '\n' ) else : _as_text ( n , chunks ) return '' . join ( chunks )
Similar to node.text, but preserves whitespace around tags,
and converts <br/>s to \n.
Similar to node . text but preserves whitespace around tags and converts <br / > s to \ n .
"""
    Similar to node.text, but preserves whitespace around tags,
    and converts <br/>s to \n.
    """
node
chunks