summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2023-02-09 08:15:15 -0500
committerLeonard Richardson <leonardr@segfault.org>2023-02-09 08:15:15 -0500
commitcbce97624b05a399cd5805c5938b342a8e10fe9b (patch)
tree39682049d1be4361cb9e0c14a4c797fd2e2befcb /doc
parent91397340f4736b78c57c4b07cd11ef0587919200 (diff)
Add another import of NavigableString just before the constructor is used, since most people don't run all the code in the doc in order.
Diffstat (limited to 'doc')
-rw-r--r--doc/source/index.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst
index f1be0c5..55dde0b 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -1972,6 +1972,7 @@ If you need to add a string to a document, no problem--you can pass a
Python string in to ``append()``, or you can call the ``NavigableString``
constructor::
+ from bs4 import NavigableString
soup = BeautifulSoup("<b></b>", 'html.parser')
tag = soup.b
tag.append("Hello")