Skip to content

Commit 87249be

Browse files
oprypinwaylan
authored andcommitted
Fix typo in attribute name
There are no other references to `content_indention`, and it seems that there were no problems with this only because the other line `self.content_indent = indent` kicks in in all relevant situations.
1 parent 040b617 commit 87249be

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
* Fix type annotations for `convertFile` - it accepts only bytes-based buffers.
1616
Also remove legacy checks from Python 2 (#1400)
1717
* Remove legacy import needed only in Python 2 (#1403)
18+
* Fix typo that left the attribute `AdmonitionProcessor.content_indent` unset
19+
(#1404)
1820
* Improve and expand type annotations in the code base (#1401).
1921

2022
## [3.5.1] -- 2023-10-31

markdown/extensions/admonition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(self, parser: blockparser.BlockParser):
5959
super().__init__(parser)
6060

6161
self.current_sibling: etree.Element | None = None
62-
self.content_indention = 0
62+
self.content_indent = 0
6363

6464
def parse_content(self, parent: etree.Element, block: str) -> tuple[etree.Element | None, str, str]:
6565
"""Get sibling admonition.

0 commit comments

Comments
 (0)