mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Can't apply textile modifiers to 1 non-ASCII character (#19995).
git-svn-id: http://svn.redmine.org/redmine/trunk@14295 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
ea34967e65
commit
09356f4e67
@ -384,7 +384,7 @@ class RedCloth3 < String
|
|||||||
(?!\-\-)
|
(?!\-\-)
|
||||||
(#{QTAGS_JOIN}|) # oqs
|
(#{QTAGS_JOIN}|) # oqs
|
||||||
(#{rcq}) # qtag
|
(#{rcq}) # qtag
|
||||||
(\w|[^\s].*?[^\s]) # content
|
([[:word:]]|[^\s].*?[^\s]) # content
|
||||||
(?!\-\-)
|
(?!\-\-)
|
||||||
#{rcq}
|
#{rcq}
|
||||||
(#{QTAGS_JOIN}|) # oqa
|
(#{QTAGS_JOIN}|) # oqa
|
||||||
@ -393,7 +393,7 @@ class RedCloth3 < String
|
|||||||
/(#{rcq})
|
/(#{rcq})
|
||||||
(#{C})
|
(#{C})
|
||||||
(?::(\S+))?
|
(?::(\S+))?
|
||||||
(\w|[^\s\-].*?[^\s\-])
|
([[:word:]]|[^\s\-].*?[^\s\-])
|
||||||
#{rcq}/xm
|
#{rcq}/xm
|
||||||
end
|
end
|
||||||
[rc, ht, re, rtype]
|
[rc, ht, re, rtype]
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
#encoding: utf-8
|
||||||
|
#
|
||||||
# Redmine - project management software
|
# Redmine - project management software
|
||||||
# Copyright (C) 2006-2015 Jean-Philippe Lang
|
# Copyright (C) 2006-2015 Jean-Philippe Lang
|
||||||
#
|
#
|
||||||
@ -59,6 +61,10 @@ class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_modifier_should_work_with_one_non_ascii_character
|
||||||
|
assert_html_output "*Ä*" => "<strong>Ä</strong>"
|
||||||
|
end
|
||||||
|
|
||||||
def test_styles
|
def test_styles
|
||||||
# single style
|
# single style
|
||||||
assert_html_output({
|
assert_html_output({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user