table_parser 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/table_parser/parser.rb +5 -6
- data/lib/table_parser.rb +1 -1
- metadata +1 -1
data/lib/table_parser/parser.rb
CHANGED
@@ -63,15 +63,14 @@ module TableParser
|
|
63
63
|
(0..rowspan).each do |x|
|
64
64
|
(0..colspan).each do |y|
|
65
65
|
columns[curr_y+y] = [] unless columns[curr_y+y]
|
66
|
+
while columns[curr_y+y][curr_x+x]
|
67
|
+
curr_y += 1
|
68
|
+
columns[curr_y+y] = [] unless columns[curr_y+y]
|
69
|
+
end
|
70
|
+
|
66
71
|
if (x == 0 || dup_rows) && (y == 0 || dup_cols)
|
67
|
-
while columns[curr_y+y][curr_x+x]
|
68
|
-
curr_y += 1
|
69
|
-
end
|
70
72
|
columns[curr_y+y][curr_x+x] = node
|
71
73
|
else
|
72
|
-
while columns[curr_y+y][curr_x+x]
|
73
|
-
curr_y += 1
|
74
|
-
end
|
75
74
|
columns[curr_y+y][curr_x+x] = EmptyTableNode.new(node.element)
|
76
75
|
end
|
77
76
|
end
|
data/lib/table_parser.rb
CHANGED