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.
@@ -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
@@ -4,5 +4,5 @@ require 'table_parser/table'
4
4
  require 'table_parser/parser'
5
5
 
6
6
  module TableParser
7
- VERSION = '0.6.0'
7
+ VERSION = '0.6.1'
8
8
  end
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.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francis Chong