Skip to content

Commit

Permalink
Merge branch 'release/2.3.11'
Browse files Browse the repository at this point in the history
  • Loading branch information
ikirudennis committed Apr 30, 2017
2 parents 08d32f3 + 0f0b695 commit 11397f2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.textile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
h1. Textile Changelog

h2. Version 2.3.11
* Bugfix: Don't strip leading dot from image URIs ("#42":https://github.com/textile/python-textile/issues/42)

h2. Version 2.3.10
* Packaging: cleanup in MANIFEST.IN leads to better linux packaging, and smaller wheel size.

Expand Down
6 changes: 6 additions & 0 deletions tests/test_github_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,9 @@ def test_github_issue_40():
result = textile.textile(text)
expect = '\r\n'
assert result == expect

def test_github_issue_42():
text = '!./image.png!'
result = textile.textile(text)
expect = '\t<p><img alt="" src="./image.png" /></p>'
assert result == expect
2 changes: 1 addition & 1 deletion textile/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ def image(self, text):
\! # opening !
(\<|\=|\>)? # optional alignment atts
({0}) # optional style,class atts
(?:\. )? # optional dot-space
(?:\.\s)? # optional dot-space
([^\s(!]+) # presume this is the src
\s? # optional space
(?:\(([^\)]+)\))? # optional title
Expand Down
2 changes: 1 addition & 1 deletion textile/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '2.3.10'
VERSION = '2.3.11'

0 comments on commit 11397f2

Please sign in to comment.