aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/extensions
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2009-03-09 22:41:04 -0400
committerWaylan Limberg <waylan@gmail.com>2009-03-09 22:41:04 -0400
commite21d8465ce79d998bc90b6670ea3c1070175ec73 (patch)
tree53516f7dd17d2891482cf3bf6d9077e241bb730a /markdown/extensions
parentf05183566eb57e1828926d7dcc89356fb8237df3 (diff)
downloadmarkdown-e21d8465ce79d998bc90b6670ea3c1070175ec73.tar.gz
markdown-e21d8465ce79d998bc90b6670ea3c1070175ec73.tar.bz2
markdown-e21d8465ce79d998bc90b6670ea3c1070175ec73.zip
Fixed bug in tables extension (ticket 24). This extension could still use a major refactor, but it at least works as documented.
Diffstat (limited to 'markdown/extensions')
-rw-r--r--markdown/extensions/tables.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/markdown/extensions/tables.py b/markdown/extensions/tables.py
index 8eaa2d3..8ee1ce2 100644
--- a/markdown/extensions/tables.py
+++ b/markdown/extensions/tables.py
@@ -49,10 +49,9 @@ class TableTreeprocessor(markdown.treeprocessors.Treeprocessor):
return result
def run(self, root):
-
for element in self._findElement(root, "p"):
for child in element:
- if child.tail:
+ if child.tag in ['tr', 'th', 'td']:
element.tag = "table"
break