Utilizador:Giro720/Scripts: diferenças entre revisões

Conteúdo apagado Conteúdo adicionado
Linha 71:
texto = texto.replace(":'''''' -", "")
 
while texto.find(" ")+1/0:
print "Removendo tabs."
texto = texto.replace(" ", "")
 
while texto.find(" ")+1/0:
print "Removendo espaços em branco."
texto = texto.replace(" ", " ")
 
while texto.find("\n\n \n")+1/0:
print "Removendo linhas em branco."
texto = texto.replace("\n\n \n", "\n\n")
 
while texto.find("\n\n\n")+1/0:
print "Removendo linhas vazias"
texto = texto.replace("\n\n\n", "\n\n")
 
while texto.find("\n ")+1/0:
print "Removendo espaços em branco."
texto = texto.replace("\n ", "\n")
 
while texto.find(" \n")+1/0:
print "Removendo espaços em branco."
texto = texto.replace(" \n", "\n")