Add support for quoted arguments containing commas in wiki macros (#40014).

Patch by Yasu Saku (user:skys).


git-svn-id: https://svn.redmine.org/redmine/trunk@22959 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2024-08-20 02:13:21 +00:00
parent 65597ec1cf
commit 578360fdab
2 changed files with 12 additions and 2 deletions

View File

@@ -279,6 +279,13 @@ class Redmine::WikiFormatting::MacrosTest < Redmine::HelperTest
end
end
def test_macro_collapse_with_arg_contains_comma
text = %|{{collapse("Click here, to see the example", Hide example)\n*Collapsed* block of text\n}}|
result = textilizable(text)
assert_select_in result, 'a.collapsible.icon-collapsed', :text => 'Click here, to see the example'
assert_select_in result, 'a.collapsible.icon-expanded', :text => 'Hide example'
end
def test_macro_collapse_should_not_break_toc
set_language_if_valid 'en'