wikitextparser 0.56.1__tar.gz → 0.56.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/CHANGELOG.rst +4 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/PKG-INFO +1 -1
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/__init__.py +1 -1
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_wikitext.py +3 -3
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/.coveragerc +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/.github/workflows/tests.yml +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/.gitignore +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/.readthedocs.yaml +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/LICENSE.md +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/README.rst +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/docs/CHANGELOG.rst +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/docs/Makefile +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/docs/README.rst +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/docs/conf.py +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/docs/index.rst +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/docs/make.bat +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/pyproject.toml +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_argument.py +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_cell.py +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_comment_bold_italic.py +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_config.py +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_externallink.py +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_parameter.py +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_parser_function.py +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_section.py +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_spans.py +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_table.py +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_tag.py +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_template.py +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_wikilink.py +0 -0
- {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_wikilist.py +0 -0
|
@@ -63,8 +63,8 @@ EXTERNAL_LINK = (
|
|
|
63
63
|
rb'(?>' + BARE_EXTERNAL_LINK + rb'|' + BRACKET_EXTERNAL_LINK + rb')'
|
|
64
64
|
)
|
|
65
65
|
EXTERNAL_LINK_FINDITER = rc(EXTERNAL_LINK, IGNORECASE).finditer
|
|
66
|
-
|
|
67
|
-
rb'[' + INVALID_URL_CHARS[:-4] + rb'{}]'
|
|
66
|
+
INVALID_EL_TPP_CHRS_SUB = rc( # the [:-4] slice allows \[ and \]
|
|
67
|
+
rb'[' + INVALID_URL_CHARS[:-4] + rb'{}|]'
|
|
68
68
|
).sub
|
|
69
69
|
|
|
70
70
|
# Sections
|
|
@@ -1205,7 +1205,7 @@ class WikiText:
|
|
|
1205
1205
|
byte_array[s - ss : e - ss] = (e - s) * b' '
|
|
1206
1206
|
for type_ in 'Template', 'ParserFunction', 'Parameter':
|
|
1207
1207
|
for s, e, _, _ in subspans(type_):
|
|
1208
|
-
byte_array[s - ss : e - ss] =
|
|
1208
|
+
byte_array[s - ss : e - ss] = INVALID_EL_TPP_CHRS_SUB(
|
|
1209
1209
|
b' ', byte_array[s:e]
|
|
1210
1210
|
)
|
|
1211
1211
|
return byte_array
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|