lib/asciidoctor/table.rb in asciidoctor-1.5.1 vs lib/asciidoctor/table.rb in asciidoctor-1.5.2
- old
+ new
@@ -1,5 +1,6 @@
+# encoding: UTF-8
module Asciidoctor
# Public: Methods and constants for managing AsciiDoc table content in a document.
# It supports all three of AsciiDoc's table formats: psv, dsv and csv.
class Table < AbstractBlock
@@ -484,10 +485,10 @@
@current_row << cell
# don't close the row if we're on the first line and the column count has not been set explicitly
# TODO perhaps the col_count/linenum logic should be in end_of_row? (or a should_end_row? method)
close_row if end_of_row? && (@col_count != -1 || @linenum > 0 || (eol && i == repeat))
end
- @open_cell = false
+ @cell_open = false
nil
end
# Public: Close the row by adding it to the Table and resetting the row
# Array and counter variables.