1
0
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:
Jean-Philippe Lang 2015-06-06 07:15:55 +00:00
parent ea34967e65
commit 09356f4e67
2 changed files with 8 additions and 2 deletions

View File

@ -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]

View File

@ -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({