diff options
author | Leonard Richardson <leonardr@segfault.org> | 2019-08-21 18:39:26 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2019-08-21 18:39:26 -0400 |
commit | b9ed3796e2569fc56fabc114a5bf978558943cb6 (patch) | |
tree | 6825b31f0bc289c22e173e92e56f5eaa844eae96 /bs4/element.py | |
parent | c9aef4f30b233ee3b1b5a6822751cf33b0fb05ed (diff) |
Explicitly set preserve_whitespace_tags to None if there is no TreeBuilder.
Diffstat (limited to 'bs4/element.py')
-rw-r--r-- | bs4/element.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bs4/element.py b/bs4/element.py index 07bd893..658115d 100644 --- a/bs4/element.py +++ b/bs4/element.py @@ -769,6 +769,7 @@ class Tag(PageElement): # special. self.can_be_empty_element = False self.cdata_list_attributes = None + self.preserve_whitespace_tags = None else: # Set up any substitutions for this tag, such as the charset in a META tag. builder.set_up_substitutions(self) |