trac-wiki 0.3.43 → 0.3.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/trac-wiki/parser.rb +1 -1
- data/lib/trac-wiki/version.rb +1 -1
- data/test/parser_test.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da5b84d08ceac06bedc95d89d654940c7e1b05c8eba3042bfd784ecf08eb21e0
|
4
|
+
data.tar.gz: a4b93d5254d4ffbf10e0dc198ed82857cf8ddaeb3d232b5236f73f32f9c94fb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86d8fc6548aad350d59e0192f2e8dc22f14c386ccf9d818fa9670b0f7aabf2666617d34ad4e1499fc7d529748bf32f4d96a48f7a4a5e4447949d7f66234bc8ae
|
7
|
+
data.tar.gz: ddd0a3f39865504896627119656a0dfab77cf666cccfd4730010e5ee54166b6b24930dc87064bd37e1a4ffce8b4fc40404cd4c305ad519ec0d810d2e91be06e4
|
data/lib/trac-wiki/parser.rb
CHANGED
@@ -773,7 +773,7 @@ module TracWiki
|
|
773
773
|
def do_wikimedia_table(text)
|
774
774
|
end_paragraph
|
775
775
|
if div_around_table?
|
776
|
-
start_tag('div', class: 'table-div', 'data-from-line' => @line_no, 'data-to-line' => @line_no + text.count("\n") + 2)
|
776
|
+
start_tag('div', class: 'table-div table-wikimedia', 'data-from-line' => @line_no, 'data-to-line' => @line_no + text.count("\n") + 2)
|
777
777
|
end
|
778
778
|
start_tag(:table)
|
779
779
|
start_tag(:tr)
|
data/lib/trac-wiki/version.rb
CHANGED
data/test/parser_test.rb
CHANGED
@@ -678,7 +678,7 @@ describe 'TracWiki::Parser' do
|
|
678
678
|
tc "<table><tr><td>Hello</td>\n<th>World!</th>\n</tr>\n<tr><td>Hello</td>\n<td>World!</td>\n</tr>\n</table>\n", "{|\n|Hello\n!World!\n|-\n|Hello\n|World!\n|}\n\n"
|
679
679
|
tc "<table><tr><td><strong>Hello</strong></td>\n<td>World!</td>\n</tr>\n<tr><td>Hello</td>\n<td>World!</td>\n</tr>\n</table>\n", "{|\n|**Hello**\n|World!\n|-\n|Hello\n|World!\n|}\n\n"
|
680
680
|
tc "<table><tr><td><strong>Hello</strong></td>\n<td>Wor ld</td>\n</tr>\n</table>\n", "{|\n|**Hello**\n|Wor\nld\n|}\n\n"
|
681
|
-
tc("<div class=\"table-div\" data-from-line=\"1\" data-to-line=\"3\"><table><tr><td>A</td>\n</tr>\n</table>\n</div>\n",
|
681
|
+
tc("<div class=\"table-div table-wikimedia\" data-from-line=\"1\" data-to-line=\"3\"><table><tr><td>A</td>\n</tr>\n</table>\n</div>\n",
|
682
682
|
"{|\n|A\n|}\n", div_around_table: true)
|
683
683
|
end
|
684
684
|
it 'should parse table' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trac-wiki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.44
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vitas Stradal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bacon
|