##// END OF EJS Templates
Fixed: Double-dash results in strikethrough text (#5122)....
Jean-Philippe Lang -
r3491:533590c29cf3
parent child
Show More
@@ -381,9 +381,11 class RedCloth3 < String
381 case rtype
381 case rtype
382 when :limit
382 when :limit
383 /(^|[>\s\(]) # sta
383 /(^|[>\s\(]) # sta
384 (?!\-\-)
384 (#{QTAGS_JOIN}|) # oqs
385 (#{QTAGS_JOIN}|) # oqs
385 (#{rcq}) # qtag
386 (#{rcq}) # qtag
386 (\w|[^\s].*?[^\s]) # content
387 (\w|[^\s].*?[^\s]) # content
388 (?!\-\-)
387 #{rcq}
389 #{rcq}
388 (#{QTAGS_JOIN}|) # oqa
390 (#{QTAGS_JOIN}|) # oqa
389 (?=[[:punct:]]|\s|\)|$)/x
391 (?=[[:punct:]]|\s|\)|$)/x
@@ -71,6 +71,13 class Redmine::WikiFormatting::TextileFormatterTest < HelperTestCase
71 )
71 )
72 end
72 end
73
73
74 def test_double_dashes_should_not_strikethrough
75 assert_html_output(
76 'double -- dashes -- test' => 'double -- dashes -- test',
77 'double -- *dashes* -- test' => 'double -- <strong>dashes</strong> -- test'
78 )
79 end
80
74 private
81 private
75
82
76 def assert_html_output(to_test)
83 def assert_html_output(to_test)
General Comments 0
You need to be logged in to leave comments. Login now