Skip to content

Commit

Permalink
Fix issue reported by jphalip with parenthesis around phrase modifiers.
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtraschke committed Aug 30, 2010
1 parent d1ba544 commit 69e4e40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion textile/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ def span(self, text):
"""
qtags = (r'\*\*', r'\*', r'\?\?', r'\-', r'__',
r'_', r'%', r'\+', r'~', r'\^')
pnct = ".,\"'?!;:"
pnct = ".,\"'?!;:("

for qtag in qtags:
pattern = re.compile(r"""
Expand Down
6 changes: 5 additions & 1 deletion textile/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@ class TestKnownValues():

('line of text\n\n leading spaces','\t<p>line of text</p>\n\n leading spaces'),

('"some text":http://www.example.com/?q=foo%20bar and more text','\t<p><a href="http://www.example.com/?q=foo%20bar">some text</a> and more text</p>')
('"some text":http://www.example.com/?q=foo%20bar and more text','\t<p><a href="http://www.example.com/?q=foo%20bar">some text</a> and more text</p>'),

('(??some text??)','\t<p>(<cite>some text</cite>)</p>'),

('(*bold text*)','\t<p>(<strong>bold text</strong>)</p>'),

)

Expand Down

0 comments on commit 69e4e40

Please sign in to comment.