Google

def write( output, indent ) output << (' '*indent) if indent > 0 output << to_s end