mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +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
|
||||
(#{rcq}) # qtag
|
||||
(\w|[^\s].*?[^\s]) # content
|
||||
([[:word:]]|[^\s].*?[^\s]) # content
|
||||
(?!\-\-)
|
||||
#{rcq}
|
||||
(#{QTAGS_JOIN}|) # oqa
|
||||
@ -393,7 +393,7 @@ class RedCloth3 < String
|
||||
/(#{rcq})
|
||||
(#{C})
|
||||
(?::(\S+))?
|
||||
(\w|[^\s\-].*?[^\s\-])
|
||||
([[:word:]]|[^\s\-].*?[^\s\-])
|
||||
#{rcq}/xm
|
||||
end
|
||||
[rc, ht, re, rtype]
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
#encoding: utf-8
|
||||
#
|
||||
# Redmine - project management software
|
||||
# Copyright (C) 2006-2015 Jean-Philippe Lang
|
||||
#
|
||||
@ -59,6 +61,10 @@ class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase
|
||||
end
|
||||
end
|
||||
|
||||
def test_modifier_should_work_with_one_non_ascii_character
|
||||
assert_html_output "*Ä*" => "<strong>Ä</strong>"
|
||||
end
|
||||
|
||||
def test_styles
|
||||
# single style
|
||||
assert_html_output({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user