table_parser 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/table_parser.rb +1 -1
- data/lib/table_parser/parser.rb +5 -1
- metadata +2 -2
data/lib/table_parser.rb
CHANGED
data/lib/table_parser/parser.rb
CHANGED
@@ -65,7 +65,11 @@ module TableParser
|
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
68
|
-
if col.rowspan > 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.
|
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-
|
12
|
+
date: 2010-01-26 00:00:00 +08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|