facwparser 0.0.5 → 0.0.6

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.
@@ -140,7 +140,7 @@ module Facwparser
140
140
  super(source)
141
141
  @elements = []
142
142
  element = ''
143
- s = StringScanner.new(value[1..-2])
143
+ s = StringScanner.new(value[1..-1])
144
144
  in_link = false
145
145
  while s.rest?
146
146
  case
@@ -65,7 +65,7 @@ module Facwparser
65
65
  elements.each { |e|
66
66
  case
67
67
  when e.class == Element::TableHeaders || e.class == Element::TableData
68
- if !table
68
+ if e.class == Element::TableHeaders || !table
69
69
  table = Element::Table.new
70
70
  processed << table
71
71
  end
@@ -1,3 +1,3 @@
1
1
  module Facwparser
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
@@ -16,5 +16,11 @@ class TestTableData < Test::Unit::TestCase
16
16
  assert_equal(%Q{<tr><td>hoge</td><td><a href="http://www.unixuser.org">hoge</a></td></tr>},
17
17
  td.render_html({}))
18
18
  end
19
+
20
+ def test_table_data_3
21
+ td = Facwparser::Element::TableData.new("|hoge||\n", '|hoge||')
22
+ assert_equal(%Q{<tr><td>hoge</td><td></td></tr>},
23
+ td.render_html({}))
24
+ end
19
25
  end
20
26
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facwparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-18 00:00:00.000000000 Z
12
+ date: 2013-02-20 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Fuxxing Atlassian Confluence Wiki Parser
15
15
  email:
@@ -84,3 +84,4 @@ signing_key:
84
84
  specification_version: 3
85
85
  summary: Parser of Atlassian Confluence Wiki Markup.
86
86
  test_files: []
87
+ has_rdoc: