]> git.phdru.name Git - bookmarks_db.git/blobdiff - Robots/parse_html.py
  is an entity that needs to be encoded.
[bookmarks_db.git] / Robots / parse_html.py
index 680ad5573a741bb99402449a77d969202e49abde..038cfaf7aa3b0e51be09518f001c9abbda240808 100755 (executable)
@@ -32,7 +32,7 @@ num_entity_re = re.compile("(&#[0-9]+;)")
 def recode_entities(title, charset):
    output = []
    for part in entity_re.split(title):
-      if part not in ("&", "<", ">", "&quote;", " ") and \
+      if part not in ("&", "<", ">", "&quote;") and \
             entity_re.match(part):
          part = unichr(name2codepoint.get(part[1:-1], part)).encode(charset)
       output.append(part)