Skip to content

Commit

Permalink
fix(inputters): Discard duplicate values being parsed without keys in…
Browse files Browse the repository at this point in the history
… XML
  • Loading branch information
alerque committed Dec 5, 2024
1 parent 67ea929 commit 4c7b6e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inputters/xml.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ inputter._name = "xml"
inputter.order = 2

local function startcommand (parser, command, options)
-- Discard list values (non-key/value)
for i = 1, #options do
options[i] = nil
end
local stack = parser:getcallbacks().stack
local lno, col, pos = parser:pos()
local position = { lno = lno, col = col, pos = pos }
Expand Down

0 comments on commit 4c7b6e8

Please sign in to comment.