Hello community, here is the log from the commit of package python-Markdown for openSUSE:Factory checked in at 2015-04-23 08:04:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Markdown (Old) and /work/SRC/openSUSE:Factory/.python-Markdown.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Markdown" Changes: -------- --- /work/SRC/openSUSE:Factory/python-Markdown/python-Markdown.changes 2015-03-12 16:38:53.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-Markdown.new/python-Markdown.changes 2015-04-23 08:04:20.000000000 +0200 @@ -1,0 +2,5 @@ +Tue Apr 21 16:58:37 UTC 2015 - benoit.mo...@gmx.fr + +- update to version 2.6.2: bugfix release + +------------------------------------------------------------------- Old: ---- Markdown-2.6.1.tar.gz New: ---- Markdown-2.6.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Markdown.spec ++++++ --- /var/tmp/diff_new_pack.IeDlZ6/_old 2015-04-23 08:04:20.000000000 +0200 +++ /var/tmp/diff_new_pack.IeDlZ6/_new 2015-04-23 08:04:20.000000000 +0200 @@ -17,7 +17,7 @@ Name: python-Markdown -Version: 2.6.1 +Version: 2.6.2 Release: 0 Summary: Python implementation of Markdown License: BSD-3-Clause ++++++ Markdown-2.6.1.tar.gz -> Markdown-2.6.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.1/PKG-INFO new/Markdown-2.6.2/PKG-INFO --- old/Markdown-2.6.1/PKG-INFO 2015-03-09 02:15:34.000000000 +0100 +++ new/Markdown-2.6.2/PKG-INFO 2015-04-21 01:21:22.000000000 +0200 @@ -1,12 +1,12 @@ Metadata-Version: 1.1 Name: Markdown -Version: 2.6.1 +Version: 2.6.2 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.1.tar.gz +Download-URL: http://pypi.python.org/packages/source/M/Markdown/Markdown-2.6.2.tar.gz Description: This is a Python implementation of John Gruber's Markdown_. It is almost completely compliant with the reference implementation, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.1/docs/extensions/smarty.txt new/Markdown-2.6.2/docs/extensions/smarty.txt --- old/Markdown-2.6.1/docs/extensions/smarty.txt 2015-02-07 17:23:24.000000000 +0100 +++ new/Markdown-2.6.2/docs/extensions/smarty.txt 2015-03-14 22:16:50.000000000 +0100 @@ -29,15 +29,15 @@ For example, one might use the following configuration to get correct quotes for the German language: - extensionConfigs = { - 'smarty': { - 'substitutions': { - 'left-single-quote': '‚', # sb is not a typo! + extension_configs = { + 'markdown.extensions.smarty': { + 'substitutions': { + 'left-single-quote': '‚', # sb is not a typo! 'right-single-quote': '‘', 'left-double-quote': '„', 'right-double-quote': '“' } - } + } } !!! note diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.1/markdown/__init__.py new/Markdown-2.6.2/markdown/__init__.py --- old/Markdown-2.6.1/markdown/__init__.py 2015-02-24 23:56:51.000000000 +0100 +++ new/Markdown-2.6.2/markdown/__init__.py 2015-04-21 01:10:46.000000000 +0200 @@ -88,7 +88,7 @@ If they are of type string, the module mdx_name.py will be loaded. If they are a subclass of markdown.Extension, they will be used as-is. - * extension_configs: Configuration settingis for extensions. + * extension_configs: Configuration settings for extensions. * output_format: Format of output. Supported formats are: * "xhtml1": Outputs XHTML 1.x. Default. * "xhtml5": Outputs XHTML style tags of HTML 5 @@ -400,7 +400,7 @@ return output.strip() def convertFile(self, input=None, output=None, encoding=None): - """Converts a markdown file and returns the HTML as a unicode string. + """Converts a Markdown file and returns the HTML as a Unicode string. Decodes the file using the provided encoding (defaults to utf-8), passes the file content to markdown, and outputs the html to either @@ -408,9 +408,9 @@ encoding as the source file. The 'xmlcharrefreplace' error handler is used when encoding the output. - **Note:** This is the only place that decoding and encoding of unicode - takes place in Python-Markdown. (All other code is unicode-in / - unicode-out.) + **Note:** This is the only place that decoding and encoding of Unicode + takes place in Python-Markdown. (All other code is Unicode-in / + Unicode-out.) Keyword arguments: @@ -476,7 +476,7 @@ def markdown(text, *args, **kwargs): - """Convert a markdown string to HTML and return HTML as a unicode string. + """Convert a Markdown string to HTML and return HTML as a Unicode string. This is a shortcut function for `Markdown` class to cover the most basic use case. It initializes an instance of Markdown, loads the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.1/markdown/__version__.py new/Markdown-2.6.2/markdown/__version__.py --- old/Markdown-2.6.1/markdown/__version__.py 2015-03-09 02:10:56.000000000 +0100 +++ new/Markdown-2.6.2/markdown/__version__.py 2015-04-21 01:12:55.000000000 +0200 @@ -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, 1, 'final', 0) +version_info = (2, 6, 2, 'final', 0) def _get_version(): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.1/markdown/extensions/smarty.py new/Markdown-2.6.2/markdown/extensions/smarty.py --- old/Markdown-2.6.1/markdown/extensions/smarty.py 2014-11-21 01:12:27.000000000 +0100 +++ new/Markdown-2.6.2/markdown/extensions/smarty.py 2015-04-21 01:10:46.000000000 +0200 @@ -126,6 +126,9 @@ doubleQuoteSetsRe = r""""'(?=\w)""" singleQuoteSetsRe = r"""'"(?=\w)""" +# Special case for decade abbreviations (the '80s): +decadeAbbrRe = r"(?<!\w)'(?=\d{2}s)" + # Get most opening double quotes: openingDoubleQuotesRegex = r'%s"(?=\w)' % openingQuotesBase @@ -227,6 +230,7 @@ (doubleQuoteStartRe, (rdquo,)), (doubleQuoteSetsRe, (ldquo + lsquo,)), (singleQuoteSetsRe, (lsquo + ldquo,)), + (decadeAbbrRe, (rsquo,)), (openingSingleQuotesRegex, (2, lsquo)), (closingSingleQuotesRegex, (rsquo,)), (closingSingleQuotesRegex2, (rsquo, 2)), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.1/markdown/extensions/tables.py new/Markdown-2.6.2/markdown/extensions/tables.py --- old/Markdown-2.6.1/markdown/extensions/tables.py 2014-11-21 01:12:27.000000000 +0100 +++ new/Markdown-2.6.2/markdown/extensions/tables.py 2015-04-21 01:10:46.000000000 +0200 @@ -27,7 +27,7 @@ def test(self, parent, block): rows = block.split('\n') - return (len(rows) > 2 and '|' in rows[0] and + return (len(rows) > 1 and '|' in rows[0] and '|' in rows[1] and '-' in rows[1] and rows[1].strip()[0] in ['|', ':', '-']) @@ -36,7 +36,7 @@ block = blocks.pop(0).split('\n') header = block[0].strip() seperator = block[1].strip() - rows = block[2:] + rows = [] if len(block) < 3 else block[2:] # Get format type (bordered by pipes or not) border = False if header.startswith('|'): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.1/markdown/extensions/toc.py new/Markdown-2.6.2/markdown/extensions/toc.py --- old/Markdown-2.6.1/markdown/extensions/toc.py 2015-01-31 18:11:55.000000000 +0100 +++ new/Markdown-2.6.2/markdown/extensions/toc.py 2015-03-14 22:09:46.000000000 +0100 @@ -17,7 +17,7 @@ from __future__ import unicode_literals from . import Extension from ..treeprocessors import Treeprocessor -from ..util import etree, parseBoolValue, AMP_SUBSTITUTE, HTML_PLACEHOLDER_RE +from ..util import etree, parseBoolValue, AMP_SUBSTITUTE, HTML_PLACEHOLDER_RE, string_type import re import unicodedata @@ -231,7 +231,7 @@ toc_tokens = [] for el in doc.iter(): - if self.header_rgx.match(el.tag): + if isinstance(el.tag, string_type) and self.header_rgx.match(el.tag): self.set_level(el) text = ''.join(el.itertext()).strip() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.1/tests/extensions/extra/tables.html new/Markdown-2.6.2/tests/extensions/extra/tables.html --- old/Markdown-2.6.1/tests/extensions/extra/tables.html 2014-11-03 05:43:58.000000000 +0100 +++ new/Markdown-2.6.2/tests/extensions/extra/tables.html 2015-04-21 01:10:46.000000000 +0200 @@ -159,4 +159,13 @@ ------------ | ------------- Content Cell | Content Cell Content Cell | Content Cell -</code></pre> \ No newline at end of file +</code></pre> +<table> +<thead> +<tr> +<th>First Header</th> +<th>Second Header</th> +</tr> +</thead> +<tbody></tbody> +</table> \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.1/tests/extensions/extra/tables.txt new/Markdown-2.6.2/tests/extensions/extra/tables.txt --- old/Markdown-2.6.1/tests/extensions/extra/tables.txt 2014-11-03 05:43:58.000000000 +0100 +++ new/Markdown-2.6.2/tests/extensions/extra/tables.txt 2015-04-21 01:10:46.000000000 +0200 @@ -50,3 +50,6 @@ ------------ | ------------- Content Cell | Content Cell Content Cell | Content Cell + +| First Header | Second Header | +| ------------ | ------------- | \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.1/tests/extensions/smarty.html new/Markdown-2.6.2/tests/extensions/smarty.html --- old/Markdown-2.6.1/tests/extensions/smarty.html 2014-11-03 05:43:58.000000000 +0100 +++ new/Markdown-2.6.2/tests/extensions/smarty.html 2015-04-21 01:10:46.000000000 +0200 @@ -1,11 +1,11 @@ -<p>’. +<p>’.<br /> 1440–80’s<br /> -1440–‘80s<br /> -1440—‘80s<br /> +1440–’80s<br /> +1440—’80s<br /> 1960s<br /> 1960’s<br /> -one two ‘60s<br /> -‘60s</p> +one two ’60s<br /> +’60s</p> <p>It’s fun. What’s fun?<br /> “Isn’t this fun”? — she said…<br /> “‘Quoted’ words in a larger quote.”<br /> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.1/tests/extensions/smarty.txt new/Markdown-2.6.2/tests/extensions/smarty.txt --- old/Markdown-2.6.1/tests/extensions/smarty.txt 2014-11-03 05:43:58.000000000 +0100 +++ new/Markdown-2.6.2/tests/extensions/smarty.txt 2015-04-21 01:10:46.000000000 +0200 @@ -1,4 +1,4 @@ -'. +'. 1440--80's 1440--'80s 1440---'80s