table_parser 0.5.6 → 0.5.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.
data/lib/table_parser.rb CHANGED
@@ -4,5 +4,5 @@ require 'table_parser/table'
4
4
  require 'table_parser/parser'
5
5
 
6
6
  module TableParser
7
- VERSION = '0.5.6'
7
+ VERSION = '0.5.7'
8
8
  end
@@ -65,7 +65,11 @@ module TableParser
65
65
  end
66
66
  end
67
67
 
68
- if col.rowspan > 1 && data[row_index+1]
68
+ if col.rowspan > 1
69
+ unless data[row_index+1]
70
+ data.insert(row_index, [])
71
+ end
72
+
69
73
  if dup_rows
70
74
  data[row_index+1].insert(col_index, TableNode.new(col.element, col.rowspan - 1))
71
75
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francis Chong
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-16 00:00:00 +08:00
12
+ date: 2010-01-26 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency