Explorar el Código

Ensure the text is stripped properly.

tags/v0.2
Ben Kurtovic hace 10 años
padre
commit
2dfdf1bd4a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      earwigbot/wiki/copyvios/parsers.py

+ 1
- 1
earwigbot/wiki/copyvios/parsers.py Ver fichero

@@ -64,7 +64,7 @@ class ArticleTextParser(BaseTextParser):
"""
wikicode = mwparserfromhell.parse(self.text)
clean = wikicode.strip_code(normalize=True, collapse=True)
self.clean = clean.replace("\n\n", "\n") # Collapse extra newlines
self.clean = clean.replace("\n\n", "\n").strip()
return self.clean

def chunk(self, nltk_dir, max_chunks, max_query=256):


Cargando…
Cancelar
Guardar