From 665f26af74d898787c4d29e7fc03d0e1077e4b73 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Fri, 30 Mar 2012 14:09:57 -0400 Subject: Corrected typo. --- doc/source/index.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/source') diff --git a/doc/source/index.rst b/doc/source/index.rst index fc69ba8..0b85924 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -2493,14 +2493,14 @@ has changed to ``bs4``. Soup 4 code on a system that doesn't have BS4 installed. ``HTMLParser.HTMLParseError: malformed start tag`` - Caused by giving -Python's built-in HTML parser a document it can't -handle. :ref:`Install lxml or html5lib. ` Any other -``HTMLParseError`` is probably the same problem. +Python's built-in HTML parser a document it can't handle. Any other +``HTMLParseError`` is probably the same problem. Solution: +:ref:`Install lxml or html5lib. ` If you can't find a tag that you know is in the document (that is, ``find_all()`` returned ``[]`` or ``find()`` returned ``None``), you're probably using Python's built-in HTML parser, which sometimes skips -tags it doesn't understand. :ref:`Install lxml or +tags it doesn't understand. Solution: :ref:`Install lxml or html5lib. ` ``KeyError: [attr]`` - Caused by accessing ``tag['attr']`` when the -- cgit v1.2.3