aboutsummaryrefslogtreecommitdiffstats
path: root/markdown_extensions/def_list.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-11-05 09:55:26 -0500
committerWaylan Limberg <waylan@gmail.com>2008-11-05 09:55:26 -0500
commit8aac03d7286cd896518a58acbfefa09399462dc6 (patch)
tree4c9d9214c6bedbe2094626aca9f5a5fce550c822 /markdown_extensions/def_list.py
parent00f623253bc80e95921f6055a6db206b548857db (diff)
downloadmarkdown-8aac03d7286cd896518a58acbfefa09399462dc6.tar.gz
markdown-8aac03d7286cd896518a58acbfefa09399462dc6.tar.bz2
markdown-8aac03d7286cd896518a58acbfefa09399462dc6.zip
Fixed a silly bug in Definition List extension. Also added tests. As this extension modifies the core, we should test that all core parseing still works properly. Thanks for the report John Szakmeister.
Diffstat (limited to 'markdown_extensions/def_list.py')
-rw-r--r--markdown_extensions/def_list.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown_extensions/def_list.py b/markdown_extensions/def_list.py
index dcab3ed..2f1a92d 100644
--- a/markdown_extensions/def_list.py
+++ b/markdown_extensions/def_list.py
@@ -181,12 +181,12 @@ class DefListParser(markdown.MarkdownParser):
# it's hr
if CORE_RE["isline3"].match(line):
el.text = "\n".join(dump)
- self.__processHR(el)
+ self._MarkdownParser__processHR(el)
dump = []
# it's header
elif line.startswith("#"):
el.text = "\n".join(dump)
- self.__processHeader(parentElem, [line])
+ self._MarkdownParser__processHeader(parentElem, [line])
dump = []
else:
dump.append(line)