[Python-modules-commits] [python-markdown] 03/05: Fix handling of characters after backtick in tables.
Dmitry Shachnev
mitya57 at moszumanska.debian.org
Fri Nov 13 14:56:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
mitya57 pushed a commit to branch master
in repository python-markdown.
commit 712c5f12dc8bbc72895f49231ed2ccd716fc9694
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date: Sat Nov 7 20:32:49 2015 +0300
Fix handling of characters after backtick in tables.
Fixes #440. Thanks @jandecaluwe for the bug report.
---
markdown/extensions/tables.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-markdown.git
More information about the Python-modules-commits
mailing list