Add BeautifulSoup.py to the ietf/contrib/ directory so it doesn't have to be installed separately
- Legacy-Id: 289
This commit is contained in:
parent
78cbaf497b
commit
7c60b321cd
1767
ietf/contrib/BeautifulSoup.py
Normal file
1767
ietf/contrib/BeautifulSoup.py
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1 +1,2 @@
|
||||||
from form_decorator import form_decorator
|
from form_decorator import form_decorator
|
||||||
|
import BeautifulSoup
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import textwrap
|
import textwrap
|
||||||
from BeautifulSoup import Tag, BeautifulSoup, NavigableString
|
from ietf.contrib.BeautifulSoup import Tag, BeautifulSoup, NavigableString
|
||||||
|
|
||||||
block_tags = ["[document]", "html", "body", "div", "blockquote", "table", "tr", "p", "pre", "h1", "h2", "h3", "h4", "h5", "h6", ]
|
block_tags = ["[document]", "html", "body", "div", "blockquote", "table", "tr", "p", "pre", "h1", "h2", "h3", "h4", "h5", "h6", ]
|
||||||
ignore_tags = ["head", "script", "style"]
|
ignore_tags = ["head", "script", "style"]
|
||||||
|
|
Loading…
Reference in a new issue