trac-wiki 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/trac-wiki/parser.rb +1 -0
- data/lib/trac-wiki/version.rb +1 -1
- data/test/parser_test.rb +3 -2
- metadata +1 -1
data/lib/trac-wiki/parser.rb
CHANGED
data/lib/trac-wiki/version.rb
CHANGED
data/test/parser_test.rb
CHANGED
@@ -49,6 +49,7 @@ describe TracWiki::Parser do
|
|
49
49
|
it 'should be toc' do
|
50
50
|
tc "<p>{{toc}}</p>\n", "{{toc}}"
|
51
51
|
tc "<h2>ahoj</h2><p>{{toc}}</p>\n<h2>ahoj</h2>", "==ahoj==\n{{toc}}\n\n==ahoj==\n"
|
52
|
+
tc "<h2>ahoj</h2><p>{{toc}}</p>\n<h2>ahoj</h2>", "==ahoj==\r\n{{toc}}\r\n\r\n==ahoj==\r\n"
|
52
53
|
end
|
53
54
|
|
54
55
|
it 'should parse bolditalic' do
|
@@ -482,8 +483,8 @@ describe TracWiki::Parser do
|
|
482
483
|
tc "<p>---- foo</p>\n", "---- foo\n"
|
483
484
|
|
484
485
|
# [...] no whitespace is allowed between them
|
485
|
-
tc "<p>--
|
486
|
-
tc "<p>--
|
486
|
+
tc "<p>-- --</p>\n", "-- -- "
|
487
|
+
tc "<p>-- --</p>\n", "--\t-- "
|
487
488
|
end
|
488
489
|
|
489
490
|
it 'should parse table' do
|