parameters: (node)
return_statement: return autoNodeIsFinal(node)
docstring: Returns 1 if node is "worth outputting", otherwise 0.
  
      Node is "worth outputting", if none of the parents
      isFinalNode, and it contains non-blank text and entities.
docstring_summary: Returns 1 if node is "worth outputting", otherwise 0.
docstring_tokens: Returns 1 if node is worth outputting otherwise 0 .
function: def worthOutputting(node):
      """Returns 1 if node is "worth outputting", otherwise 0.
  
      Node is "worth outputting", if none of the parents
      isFinalNode, and it contains non-blank text and entities.
      """
      worth = 1
      parent = node.parent
      final = isFinalNode(node) and node.name not in ignored_tags
      while not final and parent:
          if isFinalNode(parent):
              final = 1 # reset if we've got to one final tag
          if final and (parent.name not in ignored_tags) and worthOutputting(parent):
              worth = 0
              break
          parent = parent.parent
      #if node.name == 'funclink' and worth:
          #print "wah?" + str(isFinalNode(node)) + " " + str(node.name not in ignored_tags) + " " + str(worth)
      if not worth:
          return 0
  
      return autoNodeIsFinal(node)
function_tokens: def worthOutputting ( node ) : worth = 1 parent = node . parent final = isFinalNode ( node ) and node . name not in ignored_tags while not final and parent : if isFinalNode ( parent ) : final = 1 # reset if we've got to one final tag if final and ( parent . name not in ignored_tags ) and worthOutputting ( parent ) : worth = 0 break parent = parent . parent #if node.name == 'funclink' and worth: #print "wah?" + str(isFinalNode(node)) + " " + str(node.name not in ignored_tags) + " " + str(worth) if not worth : return 0 return autoNodeIsFinal ( node )