Fixed: URL with ~ broken in wiki formatting.
All RedCloth quick phrase modifiers are now limited to a single line. git-svn-id: http://redmine.rubyforge.org/svn/trunk@796 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
cb8bee3a4e
commit
586231067b
|
@ -359,16 +359,16 @@ class RedCloth < String
|
||||||
]
|
]
|
||||||
|
|
||||||
QTAGS = [
|
QTAGS = [
|
||||||
['**', 'b'],
|
['**', 'b', :limit],
|
||||||
['*', 'strong'],
|
['*', 'strong', :limit],
|
||||||
['??', 'cite', :limit],
|
['??', 'cite', :limit],
|
||||||
['-', 'del', :limit],
|
['-', 'del', :limit],
|
||||||
['__', 'i'],
|
['__', 'i', :limit],
|
||||||
['_', 'em', :limit],
|
['_', 'em', :limit],
|
||||||
['%', 'span', :limit],
|
['%', 'span', :limit],
|
||||||
['+', 'ins', :limit],
|
['+', 'ins', :limit],
|
||||||
['^', 'sup'],
|
['^', 'sup', :limit],
|
||||||
['~', 'sub']
|
['~', 'sub', :limit]
|
||||||
]
|
]
|
||||||
QTAGS.collect! do |rc, ht, rtype|
|
QTAGS.collect! do |rc, ht, rtype|
|
||||||
rcq = Regexp::quote rc
|
rcq = Regexp::quote rc
|
||||||
|
|
|
@ -29,6 +29,7 @@ class ApplicationHelperTest < HelperTestCase
|
||||||
def test_auto_links
|
def test_auto_links
|
||||||
to_test = {
|
to_test = {
|
||||||
'http://foo.bar' => '<a class="external" href="http://foo.bar">http://foo.bar</a>',
|
'http://foo.bar' => '<a class="external" href="http://foo.bar">http://foo.bar</a>',
|
||||||
|
'http://foo.bar/~user' => '<a class="external" href="http://foo.bar/~user">http://foo.bar/~user</a>',
|
||||||
'http://foo.bar.' => '<a class="external" href="http://foo.bar">http://foo.bar</a>.',
|
'http://foo.bar.' => '<a class="external" href="http://foo.bar">http://foo.bar</a>.',
|
||||||
'http://foo.bar/foo.bar#foo.bar.' => '<a class="external" href="http://foo.bar/foo.bar#foo.bar">http://foo.bar/foo.bar#foo.bar</a>.',
|
'http://foo.bar/foo.bar#foo.bar.' => '<a class="external" href="http://foo.bar/foo.bar#foo.bar">http://foo.bar/foo.bar#foo.bar</a>.',
|
||||||
'www.foo.bar' => '<a class="external" href="http://www.foo.bar">www.foo.bar</a>',
|
'www.foo.bar' => '<a class="external" href="http://www.foo.bar">www.foo.bar</a>',
|
||||||
|
|
Loading…
Reference in New Issue