trac-wiki 0.0.6 → 0.0.7

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.
@@ -491,6 +491,7 @@ module TracWiki
491
491
  # ordinary line
492
492
  when /\A(\s*)(\S+.*?)$(\r?\n)?/
493
493
  spc_size, text = $1.size, $2
494
+ text.rstrip!
494
495
 
495
496
  if @stack.include?('li') ||@stack.include?('dl')
496
497
 
@@ -1,3 +1,3 @@
1
1
  module TracWiki
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
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>-- -- </p>\n", "-- -- "
486
- tc "<p>-- -- </p>\n", "--\t-- "
486
+ tc "<p>-- --</p>\n", "-- -- "
487
+ tc "<p>-- --</p>\n", "--\t-- "
487
488
  end
488
489
 
489
490
  it 'should parse table' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trac-wiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: