diff options
Diffstat (limited to 'rst_helpers.lua')
-rw-r--r-- | rst_helpers.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rst_helpers.lua b/rst_helpers.lua index f7eb950..bb48aed 100644 --- a/rst_helpers.lua +++ b/rst_helpers.lua @@ -93,7 +93,7 @@ do end function helpers.cell.create(raw, n_row, n_col, parent, variant) - local p = patterns + local p = helpers.patterns local cell = {} cell.stripped = raw and p.strip:match(raw) or "" cell.content = raw @@ -130,7 +130,7 @@ end local function set_layout (line) - local p = patterns + local p = helpers.patterns local layout = {} local slice = Ct((p.plus * C(p.dash^1) * #p.plus)^1) @@ -314,7 +314,7 @@ function helpers.table.create(raw) self.rows = {} self.layout = set_layout(raw[1]) - local p = patterns + local p = helpers.patterns self.resolve_parent = function(row, col, array) local array = array or self.rows @@ -492,7 +492,7 @@ end -- Check the column boundaries of a simple table. function helpers.get_st_boundaries (str) - local p = patterns + local p = helpers.patterns local starts, stops, slices = {}, {}, {} for n, elm in ipairs({ p.column_starts:match(str) }) do slices[n] = { start = elm } @@ -509,7 +509,7 @@ function helpers.table.simple(raw) local rows = {} local multispans = {} local bounds = helpers.get_st_boundaries(raw[1]) - local p = patterns + local p = helpers.patterns for nr, row in ipairs(raw) do local newrow = {} |