Module:Scale tree: Difference between revisions
Simplified entry of comments so it's based on key-value pairs: step ratio followed by comment text |
No edit summary |
||
| Line 21: | Line 21: | ||
function p.parse_pair(unparsed) | function p.parse_pair(unparsed) | ||
local parsed = {} | local parsed = {} | ||
for entry in string.gmatch(unparsed, '([^ | for entry in string.gmatch(unparsed, '([^:]+)') do | ||
table.insert(parsed, entry) -- Add to array | table.insert(parsed, entry) -- Add to array | ||
end | end | ||