Skip to content

Commit 11397f2

Browse files
committed
Merge branch 'release/2.3.11'
2 parents 08d32f3 + 0f0b695 commit 11397f2

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

CHANGELOG.textile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
h1. Textile Changelog
22

3+
h2. Version 2.3.11
4+
* Bugfix: Don't strip leading dot from image URIs ("#42":https://github.com/textile/python-textile/issues/42)
5+
36
h2. Version 2.3.10
47
* Packaging: cleanup in MANIFEST.IN leads to better linux packaging, and smaller wheel size.
58

tests/test_github_issues.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,9 @@ def test_github_issue_40():
103103
result = textile.textile(text)
104104
expect = '\r\n'
105105
assert result == expect
106+
107+
def test_github_issue_42():
108+
text = '!./image.png!'
109+
result = textile.textile(text)
110+
expect = '\t<p><img alt="" src="./image.png" /></p>'
111+
assert result == expect

textile/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ def image(self, text):
10161016
\! # opening !
10171017
(\<|\=|\>)? # optional alignment atts
10181018
({0}) # optional style,class atts
1019-
(?:\. )? # optional dot-space
1019+
(?:\.\s)? # optional dot-space
10201020
([^\s(!]+) # presume this is the src
10211021
\s? # optional space
10221022
(?:\(([^\)]+)\))? # optional title

textile/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = '2.3.10'
1+
VERSION = '2.3.11'

0 commit comments

Comments
 (0)