@@ -381,9 +381,11 class RedCloth3 < String | |||
|
381 | 381 | case rtype |
|
382 | 382 | when :limit |
|
383 | 383 | /(^|[>\s\(]) # sta |
|
384 | (?!\-\-) | |
|
384 | 385 | (#{QTAGS_JOIN}|) # oqs |
|
385 | 386 | (#{rcq}) # qtag |
|
386 | 387 | (\w|[^\s].*?[^\s]) # content |
|
388 | (?!\-\-) | |
|
387 | 389 | #{rcq} |
|
388 | 390 | (#{QTAGS_JOIN}|) # oqa |
|
389 | 391 | (?=[[:punct:]]|\s|\)|$)/x |
@@ -71,6 +71,13 class Redmine::WikiFormatting::TextileFormatterTest < HelperTestCase | |||
|
71 | 71 | ) |
|
72 | 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 | 81 | private |
|
75 | 82 | |
|
76 | 83 | def assert_html_output(to_test) |
General Comments 0
You need to be logged in to leave comments.
Login now