summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2012-08-17 09:51:27 -0400
committerLeonard Richardson <leonardr@segfault.org>2012-08-17 09:51:27 -0400
commitb9129a8f6da9bcd8ba51cb1a2a54ba8892546fa3 (patch)
tree3b72961d959567c2d71ef0ad36b86d3e2bb39c52
parent9ba29d0ab597f716b0d1c05e61197fd72a5f37f8 (diff)
Fixed doc.
-rw-r--r--doc/source/index.rst4
1 files changed, 4 insertions, 0 deletions
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&mdash;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"))
+ # [<p class="title"><b>The Dormouse's story</b></p>]
+
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
---------------