Commit ce6603bf authored by Nicolas Delaby's avatar Nicolas Delaby

typo: s/allready_repaired/already_repaired/

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39240 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5ca570e9
......@@ -346,7 +346,7 @@ class SafeHTML:
return data
html_string = orig
allready_repaired = False
already_repaired = False
while True:
try:
safe = scrubHTML(
......@@ -363,9 +363,9 @@ class SafeHTML:
# ouch !
# HTMLParser is not able to parse very dirty HTML string,
# try to repair any broken html with help of lxml
if allready_repaired:
if already_repaired:
raise
allready_repaired = True
already_repaired = True
encoding = kwargs.get('encoding')
# recover parameter is equal to True by default
# in lxml API. I pass the argument to improve readability
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment