[Python-modules-commits] [python-markdown] 01/06: Import python-markdown_2.6.5.orig.tar.gz

Dmitry Shachnev mitya57 at moszumanska.debian.org
Thu Nov 26 16:02:09 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 cbeb43ef9f5e9c12a0bda1f34eadcebd5e634f39
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Thu Nov 26 18:58:35 2015 +0300

    Import python-markdown_2.6.5.orig.tar.gz
---
 PKG-INFO                           |  4 ++--
 markdown/__version__.py            |  2 +-
 markdown/extensions/tables.py      |  2 +-
 tests/extensions/extra/tables.html | 15 +++++++++++++++
 tests/extensions/extra/tables.txt  |  8 +++++++-
 5 files changed, 26 insertions(+), 5 deletions(-)

diff --git a/PKG-INFO b/PKG-INFO
index 46da8ef..29d7794 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: Markdown
-Version: 2.6.4
+Version: 2.6.5
 Summary: Python implementation of Markdown.
 Home-page: https://pythonhosted.org/Markdown/
 Author: Waylan Limberg
 Author-email: waylan.limberg [at] icloud.com
 License: BSD License
-Download-URL: http://pypi.python.org/packages/source/M/Markdown/Markdown-2.6.4.tar.gz
+Download-URL: http://pypi.python.org/packages/source/M/Markdown/Markdown-2.6.5.tar.gz
 Description: 
         This is a Python implementation of John Gruber's Markdown_.
         It is almost completely compliant with the reference implementation,
diff --git a/markdown/__version__.py b/markdown/__version__.py
index 6830fc7..bc2f07c 100644
--- a/markdown/__version__.py
+++ b/markdown/__version__.py
@@ -5,7 +5,7 @@
 # (major, minor, micro, alpha/beta/rc/final, #)
 # (1, 1, 2, 'alpha', 0) => "1.1.2.dev"
 # (1, 2, 0, 'beta', 2) => "1.2b2"
-version_info = (2, 6, 4, 'final', 0)
+version_info = (2, 6, 5, 'final', 0)
 
 
 def _get_version():
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
diff --git a/tests/extensions/extra/tables.html b/tests/extensions/extra/tables.html
index 91337e5..783c205 100644
--- a/tests/extensions/extra/tables.html
+++ b/tests/extensions/extra/tables.html
@@ -235,4 +235,19 @@ Content Cell | Content Cell
 <td>more words</td>
 </tr>
 </tbody>
+</table>
+<p>A test for issue #440:</p>
+<table>
+<thead>
+<tr>
+<th>foo</th>
+<th>bar</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>foo</td>
+<td>(<code>bar</code>) and <code>baz</code>.</td>
+</tr>
+</tbody>
 </table>
\ No newline at end of file
diff --git a/tests/extensions/extra/tables.txt b/tests/extensions/extra/tables.txt
index 1602d1f..c9ca70a 100644
--- a/tests/extensions/extra/tables.txt
+++ b/tests/extensions/extra/tables.txt
@@ -68,4 +68,10 @@ words    |``` some | code ``` | more words
 words    |```` some | code ```` | more words
 words    |`` some ` | ` code `` | more words
 words    |``` some ` | ` code ``` | more words
-words    |```` some ` | ` code ```` | more words
\ No newline at end of file
+words    |```` some ` | ` code ```` | more words
+
+A test for issue #440:
+
+foo | bar
+--- | ---
+foo | (`bar`) and `baz`.
\ No newline at end of file

-- 
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