Commit Graph

159 Commits

Author SHA1 Message Date
Marius Balteanu
4807beaebf Explicitly specify text formatting in the tests (#35952).
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@21386 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-22 10:11:13 +00:00
Marius Balteanu
380a3b0345 Enable task list items for Common Mark text formatting (#35742).
git-svn-id: http://svn.redmine.org/redmine/trunk@21383 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-22 09:24:43 +00:00
Go MAEDA
3686b77eb6 Update copyright year in source files to 2022 (#36379).
git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-02 05:29:10 +00:00
Go MAEDA
e623582536 Lazy load inline images (#36294).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@21313 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-12-14 01:24:13 +00:00
Marius Balteanu
1245708ba7 Fix typo in class 'icon-expended' (#36149).
Patch by Bernhard Rohloff.

git-svn-id: http://svn.redmine.org/redmine/trunk@21275 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-11-08 20:14:49 +00:00
Marius Balteanu
b7798e6e1c Unify code block and add "data-language" attribute with the user-supplied language for Textile and Markdown formaters (#35104).
Patch by Martin Cizek.

git-svn-id: http://svn.redmine.org/redmine/trunk@21183 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-08-15 21:00:16 +00:00
Marius Balteanu
5699253da6 Add "data-language" attribute to code block with the user-supplied language for CommonMark formater (#35104, #32424).
Patch by Martin Cizek.

git-svn-id: http://svn.redmine.org/redmine/trunk@21182 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-08-15 20:59:04 +00:00
Marius Balteanu
9651398469 Update failing test after hardbreaks enabled by default (#35754, #32424).
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@21177 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-08-15 05:57:57 +00:00
Marius Balteanu
c1b3804555 Fixed failing test on CommonMark by striping the trailing whitespace returned by the footnote (#32424).
git-svn-id: http://svn.redmine.org/redmine/trunk@21164 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-08-11 21:51:23 +00:00
Marius Balteanu
d92b75d49e Fixed Layout/HeredocIndentation: Use 2 spaces for indentation in a heredoc by using <<~ instead of <<- (#32424).
git-svn-id: http://svn.redmine.org/redmine/trunk@21163 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-08-11 21:50:52 +00:00
Marius Balteanu
e8c911577f Relax allowed protocols in links by denying specific protocols for CommonMark text formatting (#32424).
Patch by Martin Cizek.

git-svn-id: http://svn.redmine.org/redmine/trunk@21161 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-08-11 21:49:27 +00:00
Marius Balteanu
9af2ba2c13 Adds CommonMark Markdown (GitHub Flavored) as third text formatting option (#32424).
Patch by Jens Krämer.

git-svn-id: http://svn.redmine.org/redmine/trunk@21156 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-08-11 21:40:56 +00:00
Go MAEDA
183642ba20 Markdown text sections broken by thematic breaks (horizontal rules) (#35036).
Patch by Martin Cizek.


git-svn-id: http://svn.redmine.org/redmine/trunk@20998 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-05-14 09:39:12 +00:00
Go MAEDA
3e36b5c452 Update copyright year in source files to 2021 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-25 06:58:56 +00:00
Toshi MARUYAMA
15e78eb472 shorten long line of test/unit/lib/redmine/wiki_formatting/macros_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20673 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-19 17:32:27 +00:00
Toshi MARUYAMA
cef7e91777 shorten long line of test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20671 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-19 17:32:12 +00:00
Toshi MARUYAMA
4fba0c5240 use "skip" instead of "if statement" whether Redcarpet is installed at markdown_formatter_test
git-svn-id: http://svn.redmine.org/redmine/trunk@20531 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-30 15:49:44 +00:00
Toshi MARUYAMA
65425463f1 shorten long line of test/unit/lib/redmine/wiki_formatting/macros_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20527 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-30 15:49:14 +00:00
Go MAEDA
e75829d2f3 Fix broken test due to r19868 (#31881).
git-svn-id: http://svn.redmine.org/redmine/trunk@19869 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-07-09 03:22:01 +00:00
Go MAEDA
907e0173e4 Update copyright year in source files to 2020 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-03 00:24:10 +00:00
Go MAEDA
2253032ebc Newline between list items break a list (#32971).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19536 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-29 04:21:53 +00:00
Go MAEDA
03a4e21568 Fix missing arrow icon of collapse macro (#32754).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@19413 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-01-07 14:56:29 +00:00
Toshi MARUYAMA
5876324372 filter all possibly class values on code tags in Textile (#25742)
Contributed by Holger Just from Planio.

git-svn-id: http://svn.redmine.org/redmine/trunk@19333 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-12-05 11:25:24 +00:00
Toshi MARUYAMA
a85b776324 cleanup: rubocop: fix Layout/IndentFirstHashElement in test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19260 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-24 13:19:39 +00:00
Toshi MARUYAMA
8c91acdfea cleanup: rubocop: fix Layout/SpaceInsideBlockBraces in test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19259 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-24 13:19:27 +00:00
Toshi MARUYAMA
9d48754b32 cleanup: rubocop: fix Layout/AlignArguments in test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19257 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-24 13:19:05 +00:00
Toshi MARUYAMA
2c786065fb cleanup: rubocop: fix Layout/EmptyLineAfterGuardClause in test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19252 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-24 12:58:38 +00:00
Toshi MARUYAMA
3a5c47f6e9 cleanup: rubocop: fix Layout/AlignArguments in test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19251 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-24 12:58:26 +00:00
Toshi MARUYAMA
e164ad7f1f cleanup: rubocop: fix Layout/AlignArguments in test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19246 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-24 12:40:52 +00:00
Toshi MARUYAMA
b4bfc18bb4 cleanup: rubocop: fix Layout/SpaceInsideParens in test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19228 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-24 05:26:22 +00:00
Toshi MARUYAMA
59336036e4 cleanup: rubocop: fix Layout/AlignArguments in test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19196 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-23 14:26:37 +00:00
Toshi MARUYAMA
c37ad515f8 cleanup: rubocop: fix Layout/AlignArguments in test/unit/lib/redmine/wiki_formatting/html_parser_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19187 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-23 09:03:55 +00:00
Toshi MARUYAMA
11383795ab cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_nested_lists
git-svn-id: http://svn.redmine.org/redmine/trunk@19168 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-22 14:35:20 +00:00
Toshi MARUYAMA
60878a2ad3 cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_blockquote
git-svn-id: http://svn.redmine.org/redmine/trunk@19167 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-22 14:35:09 +00:00
Toshi MARUYAMA
7e4d48d084 cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_table
git-svn-id: http://svn.redmine.org/redmine/trunk@19166 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-22 14:34:58 +00:00
Toshi MARUYAMA
d463d8ef6a cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_table_with_alignment
git-svn-id: http://svn.redmine.org/redmine/trunk@19165 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-22 14:34:47 +00:00
Toshi MARUYAMA
f4f93d6a3f cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_table_with_trailing_whitespace
git-svn-id: http://svn.redmine.org/redmine/trunk@19164 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-22 14:34:36 +00:00
Toshi MARUYAMA
8f5190d5c0 cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_table_with_line_breaks
git-svn-id: http://svn.redmine.org/redmine/trunk@19163 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-22 14:34:23 +00:00
Toshi MARUYAMA
1fb33ba05c cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_tables_with_lists
git-svn-id: http://svn.redmine.org/redmine/trunk@19162 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-22 14:34:11 +00:00
Toshi MARUYAMA
906e5fa373 cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_get_section_should_support_lines_with_spaces_before_heading
git-svn-id: http://svn.redmine.org/redmine/trunk@19161 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-22 14:34:00 +00:00
Toshi MARUYAMA
e44d928fdf cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_get_section_should_support_headings_starting_with_a_tab
git-svn-id: http://svn.redmine.org/redmine/trunk@19160 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-22 14:33:49 +00:00
Toshi MARUYAMA
fb4a59b76f cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_footnotes
git-svn-id: http://svn.redmine.org/redmine/trunk@19159 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-22 14:33:39 +00:00
Toshi MARUYAMA
6bf2bbeb0c cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_should_not_handle_as_preformatted_text_tags_that_starts_with_pre
git-svn-id: http://svn.redmine.org/redmine/trunk@19158 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-22 14:33:27 +00:00
Toshi MARUYAMA
78fbfabb01 cleanup: rubocop: fix Layout/EmptyLinesAroundClassBody in test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19126 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-21 10:46:01 +00:00
Toshi MARUYAMA
2584615d37 cleanup: rubocop: fix Layout/EmptyLinesAroundClassBody in test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19112 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-21 04:05:00 +00:00
Toshi MARUYAMA
79db2a69bd cleanup: rubocop: fix Layout/EmptyLinesAroundClassBody in test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19111 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-21 04:04:49 +00:00
Toshi MARUYAMA
bc348591f7 cleanup: rubocop: fix Layout/EmptyLinesAroundClassBody in test/unit/lib/redmine/wiki_formatting/html_parser_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19102 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-20 16:29:30 +00:00
Go MAEDA
8d61eadfc5 Add missing fixture to Redmine::WikiFormatting::MacrosTest (#32444).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19071 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-13 22:08:53 +00:00
Toshi MARUYAMA
bbef1d6c0f cleanup: rubocop: fix Layout/ClosingHeredocIndentation and Layout/IndentHeredoc in test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19020 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 14:11:02 +00:00
Go MAEDA
fc2e4c1eba Fix that receiving HTML email fails if it contains a link without an href attribute (#31695).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@18988 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 06:06:05 +00:00