From b9129a8f6da9bcd8ba51cb1a2a54ba8892546fa3 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Fri, 17 Aug 2012 09:51:27 -0400 Subject: Fixed doc. --- doc/source/index.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/source/index.rst b/doc/source/index.rst index d8d6b07..7038bb1 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -1281,6 +1281,9 @@ True—anything except a dictionary. Whatever you pass in will be used to search against the CSS class, the same as if you'd passed it in for the ``class_`` keyword argument:: + soup.find_all("p", re.compile("itl")) + # [

The Dormouse's story

] + By passing in a dictionary to ``attrs``, you can search many HTML attributes at once, not just the CSS class. These two lines of code are equivalent:: @@ -1957,6 +1960,7 @@ Output ====== .. _.prettyprinting: + Pretty-printing --------------- -- cgit v1.2.3