aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2015-11-07 20:32:49 +0300
committerDmitry Shachnev <mitya57@gmail.com>2015-11-07 20:32:49 +0300
commitb966709845116975709bbe7aec98eab6732e44df (patch)
tree933a9115933513c034e9e3b06918818b0c7d5072
parent14a045375e7ad1abdb037dd7c6c104964c8d25a8 (diff)
downloadmarkdown-b966709845116975709bbe7aec98eab6732e44df.tar.gz
markdown-b966709845116975709bbe7aec98eab6732e44df.tar.bz2
markdown-b966709845116975709bbe7aec98eab6732e44df.zip
Fix handling of characters after backtick in tables.
Fixes #440. Thanks @jandecaluwe for the bug report.
-rw-r--r--markdown/extensions/tables.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/extensions/tables.py b/markdown/extensions/tables.py
index 494aaeb..39c09a4 100644
--- a/markdown/extensions/tables.py
+++ b/markdown/extensions/tables.py
@@ -119,7 +119,7 @@ class TableProcessor(BlockProcessor):
groups = match.groups()
delim = groups[1] # the code block delimeter (ie 1 or more backticks)
row_contents = groups[2] # the text contained inside the code block
- i += match.start(4) # jump pointer to the beginning of the rest of the text (group #4)
+ i += match.start(4) - 1 # jump pointer to the beginning of the rest of the text (group #4)
element = delim + row_contents + delim # reinstert backticks
current += element
i += 1