Hello community, here is the log from the commit of package python-textile for openSUSE:Factory checked in at 2017-08-21 11:37:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-textile (Old) and /work/SRC/openSUSE:Factory/.python-textile.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-textile" Mon Aug 21 11:37:42 2017 rev:3 rq:517761 version:2.3.16 Changes: -------- --- /work/SRC/openSUSE:Factory/python-textile/python-textile.changes 2017-08-10 14:13:35.199920822 +0200 +++ /work/SRC/openSUSE:Factory/.python-textile.new/python-textile.changes 2017-08-21 11:37:47.647833016 +0200 @@ -1,0 +2,9 @@ +Wed Aug 16 19:35:04 UTC 2017 - sebix+novell....@sebix.at + +- upgrade to 2.3.16 + * Bugfixes: + * Fix processing of extended code blocks ("#50":https://github.com/textile/python-textile/issues/50) + * Don't break when links fail to include "http:" ("#51":https://github.com/textile/python-textile/issues/51) + * Better handling of poorly-formatted tables ("#52":https://github.com/textile/python-textile/issues/52) + +------------------------------------------------------------------- Old: ---- textile-2.3.15.tar.gz New: ---- textile-2.3.16.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-textile.spec ++++++ --- /var/tmp/diff_new_pack.Y3FeAV/_old 2017-08-21 11:37:49.327596770 +0200 +++ /var/tmp/diff_new_pack.Y3FeAV/_new 2017-08-21 11:37:49.335595645 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test Name: python-textile -Version: 2.3.15 +Version: 2.3.16 Release: 0 Summary: Textile processing for python License: BSD-3-Clause ++++++ textile-2.3.15.tar.gz -> textile-2.3.16.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-2.3.15/CHANGELOG.textile new/textile-2.3.16/CHANGELOG.textile --- old/textile-2.3.15/CHANGELOG.textile 2017-07-21 01:21:32.000000000 +0200 +++ new/textile-2.3.16/CHANGELOG.textile 2017-08-14 15:28:14.000000000 +0200 @@ -1,5 +1,11 @@ h1. Textile Changelog +h2. Version 2.3.16 +* Bugfixes: +** Fix processing of extended code blocks ("#50":https://github.com/textile/python-textile/issues/50) +** Don't break when links fail to include "http:" ("#51":https://github.com/textile/python-textile/issues/51) +** Better handling of poorly-formatted tables ("#52":https://github.com/textile/python-textile/issues/52) + h2. Version 2.3.15 * Bugfix: Don't break on unicode characters in the fragment of a url. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-2.3.15/PKG-INFO new/textile-2.3.16/PKG-INFO --- old/textile-2.3.15/PKG-INFO 2017-07-21 01:26:59.000000000 +0200 +++ new/textile-2.3.16/PKG-INFO 2017-08-14 15:40:10.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: textile -Version: 2.3.15 +Version: 2.3.16 Summary: Textile processing for python. Home-page: http://github.com/textile/python-textile Author: Dennis Burke diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-2.3.15/tests/test_github_issues.py new/textile-2.3.16/tests/test_github_issues.py --- old/textile-2.3.15/tests/test_github_issues.py 2017-07-21 01:20:52.000000000 +0200 +++ new/textile-2.3.16/tests/test_github_issues.py 2017-08-14 15:25:16.000000000 +0200 @@ -173,3 +173,29 @@ result = textile.textile(s) expect = '\t<p><a href="https://ru.vuejs.org/v2/guide/components.html#Входные-параметры">link</a></p>' assert result == expect + +def test_github_issue_50(): + """Incorrect wrap code with Java generics in pre""" + test = ('pre.. public class Tynopet<T extends Framework> {}\n\nfinal ' + 'List<List<String>> multipleList = new ArrayList<>();') + result = textile.textile(test) + expect = ('<pre>public class Tynopet<T extends Framework> {}\n\n' + 'final List<List<String>> multipleList = new ' + 'ArrayList<>();</pre>') + assert result == expect + +def test_github_issue_51(): + """Link build with $ sign without "http" prefix broken.""" + test = '"$":www.google.com.br' + result = textile.textile(test) + expect = '\t<p><a href="www.google.com.br">www.google.com.br</a></p>' + assert result == expect + +def test_github_issue_52(): + """Table build without space after aligment raise a AttributeError.""" + test = '|=.First Header |=. Second Header |' + result = textile.textile(test) + expect = ('\t<table>\n\t\t<tr>\n\t\t\t<td>=.First Header ' + '</td>\n\t\t\t<td style="text-align:center;">Second Header </td>' + '\n\t\t</tr>\n\t</table>') + assert result == expect diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-2.3.15/textile/core.py new/textile-2.3.16/textile/core.py --- old/textile-2.3.15/textile/core.py 2017-07-21 01:20:52.000000000 +0200 +++ new/textile-2.3.16/textile/core.py 2017-08-14 15:25:16.000000000 +0200 @@ -534,7 +534,10 @@ # at this point, we've gone through all the lines, and if there's still # an extension in effect, we close it here. if ext and out: - final = generate_tag(block.outer_tag, out.pop(), block.outer_atts) + block.content = out.pop() + block.process() + final = generate_tag(block.outer_tag, block.content, + block.outer_atts) out.append(final) return ''.join(out) @@ -917,7 +920,7 @@ text = url if "://" in text: text = text.split("://")[1] - else: + elif ":" in text: text = text.split(":")[1] text = text.strip() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-2.3.15/textile/objects/table.py new/textile-2.3.16/textile/objects/table.py --- old/textile-2.3.15/textile/objects/table.py 2016-08-05 23:42:30.000000000 +0200 +++ new/textile-2.3.16/textile/objects/table.py 2017-08-14 15:25:16.000000000 +0200 @@ -38,15 +38,17 @@ # as a normal center-aligned cell. if i == 0 and row[:2] == '|=': captionpattern = (r"^\|\=(?P<capts>{s}{a}{c})\. " - r"(?P<cap>[^\n]*)(?P<row>.*)".format(**{'s': - table_span_re_s, 'a': align_re_s, 'c': cls_re_s})) + r"(?P<cap>[^\n]*)(?P<row>.*)".format(**{ + 's': table_span_re_s, 'a': align_re_s, + 'c': cls_re_s})) caption_re = re.compile(captionpattern, re.S) cmtch = caption_re.match(row) - caption = Caption(**cmtch.groupdict()) - self.caption = '\n{0}'.format(caption.caption) - row = cmtch.group('row').lstrip() - if row == '': - continue + if cmtch: + caption = Caption(**cmtch.groupdict()) + self.caption = '\n{0}'.format(caption.caption) + row = cmtch.group('row').lstrip() + if row == '': + continue # Colgroup -- A colgroup row will not necessarily end with a |. # Hence it may include the next row of actual table data. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-2.3.15/textile/version.py new/textile-2.3.16/textile/version.py --- old/textile-2.3.15/textile/version.py 2017-07-21 01:21:32.000000000 +0200 +++ new/textile-2.3.16/textile/version.py 2017-08-14 15:28:14.000000000 +0200 @@ -1 +1 @@ -VERSION = '2.3.15' +VERSION = '2.3.16' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-2.3.15/textile.egg-info/PKG-INFO new/textile-2.3.16/textile.egg-info/PKG-INFO --- old/textile-2.3.15/textile.egg-info/PKG-INFO 2017-07-21 01:26:58.000000000 +0200 +++ new/textile-2.3.16/textile.egg-info/PKG-INFO 2017-08-14 15:40:09.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: textile -Version: 2.3.15 +Version: 2.3.16 Summary: Textile processing for python. Home-page: http://github.com/textile/python-textile Author: Dennis Burke