]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fixed a misspelled HTML entity.
authorOleg Broytman <phd@phdru.name>
Fri, 7 Mar 2008 22:39:37 +0000 (22:39 +0000)
committerOleg Broytman <phd@phdru.name>
Fri, 7 Mar 2008 22:39:37 +0000 (22:39 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@209 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

Robots/parse_html.py

index e676504a9741765fd5f7bc98fb61cd9758b739a2..47cbb190527d25c3a1bdb74bf0b694a0fe7df909 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 ("&amp;", "&lt;", "&gt;", "&quote;") and \
+      if part not in ("&amp;", "&lt;", "&gt;", "&quot;") and \
             entity_re.match(part):
          part = unichr(name2codepoint.get(part[1:-1], part)).encode(charset)
       output.append(part)