diff options
-rw-r--r-- | CHANGELOG | 2 | ||||
-rw-r--r-- | README.md | 14 | ||||
-rw-r--r-- | bs4/element.py | 2 |
3 files changed, 15 insertions, 3 deletions
@@ -4,7 +4,7 @@ will, by default, record the position in the original document where each tag was encountered. This includes line number (Tag.sourceline) and position within a line (Tag.sourcepos). Based on code by Chris - Mayo. + Mayo. [bug=1742921] = 4.8.0 (20190720, "One Small Soup") @@ -51,6 +51,19 @@ To go beyond the basics, [comprehensive documentation is available](http://www.c * [Bug tracker](https://bugs.launchpad.net/beautifulsoup/) * [Complete changelog](https://bazaar.launchpad.net/~leonardr/beautifulsoup/bs4/view/head:/CHANGELOG) +# Supporting the project + +If you use Beautiful Soup as part of your professional work, please consider a +[Tidelift subscription](https://tidelift.com/subscription/pkg/pypi-beautifulsoup4?utm_source=pypi-beautifulsoup4&utm_medium=referral&utm_campaign=readme). +This will support many of the free software projects your organization +depends on, not just Beautiful Soup. + +If you use Beautiful Soup for personal projects, the best way to say +thank you is to read +[Tool Safety](https://www.crummy.com/software/BeautifulSoup/zine/), a zine I +wrote about what Beautiful Soup has taught me about software +development. + # Building the documentation The bs4/doc/ directory contains full documentation in Sphinx @@ -73,4 +86,3 @@ If you checked out the source tree, you should see a script in the home directory called test-all-versions. This script will run the unit tests under Python 2.7, then create a temporary Python 3 conversion of the source and run the unit tests again under Python 3. - diff --git a/bs4/element.py b/bs4/element.py index a610008..a57027e 100644 --- a/bs4/element.py +++ b/bs4/element.py @@ -741,7 +741,7 @@ class Tag(PageElement): if ((not builder or builder.store_line_numbers) and (sourceline is not None or sourcepos is not None)): self.sourceline = sourceline - self.sourcepos = sourcepos + self.sourcepos = sourcepos if attrs is None: attrs = {} elif attrs: |