Skip to content
Snippets Groups Projects
Commit ec47eb65 authored by LJ Sonic's avatar LJ Sonic
Browse files

Detect table headers that contain newlines

parent 46c475e9
Branches
No related tags found
No related merge requests found
...@@ -98,7 +98,7 @@ local function findRowIndexes(t) ...@@ -98,7 +98,7 @@ local function findRowIndexes(t)
local nameIndex, valueIndex, descriptionIndex local nameIndex, valueIndex, descriptionIndex
for cellIndex, cell in ipairs(headers.cells) do for cellIndex, cell in ipairs(headers.cells) do
local text = util.wikiToPlainString(cell.content) local text = util.wikiToPlainString(cell.content):gsub('\n', ' ')
if nameHeaders[text] then if nameHeaders[text] then
nameIndex = cellIndex nameIndex = cellIndex
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment