1) Fixed priority display on windows (use \r\n instead of \n)

master
Durel 7 years ago
parent caabdd5bf7
commit 505bc7a0a6

@ -10811,11 +10811,11 @@ function inv.priority.tableToString(priorityTable, doDisplayUnused, doDisplayCol
end -- for end -- for
-- Create the second line of the header -- Create the second line of the header
priString = priString .. string.format("\n%12s", "MaxLevel") priString = priString .. string.format("\r\n%12s", "MaxLevel")
for _, blockEntry in ipairs(priorityTable) do for _, blockEntry in ipairs(priorityTable) do
priString = priString .. string.format(" %s%3d%s", levelPrefix, blockEntry.maxLevel, levelSuffix) priString = priString .. string.format(" %s%3d%s", levelPrefix, blockEntry.maxLevel, levelSuffix)
end -- for end -- for
priString = priString .. "\n" .. generalSuffix priString = priString .. "\r\n" .. generalSuffix
for _, fieldEntry in ipairs(inv.priority.fieldTable) do for _, fieldEntry in ipairs(inv.priority.fieldTable) do
local fieldName = fieldEntry[1] local fieldName = fieldEntry[1]
@ -10838,7 +10838,7 @@ function inv.priority.tableToString(priorityTable, doDisplayUnused, doDisplayCol
end -- if end -- if
if (useField) then if (useField) then
priString = priString .. fieldPrefix .. string.format("\n%12s", fieldName) .. fieldSuffix priString = priString .. fieldPrefix .. string.format("\r\n%12s", fieldName) .. fieldSuffix
for _, blockEntry in ipairs(priorityTable) do for _, blockEntry in ipairs(priorityTable) do
local fieldValue = tonumber(blockEntry.priorities[fieldName] or "") or 0 local fieldValue = tonumber(blockEntry.priorities[fieldName] or "") or 0

Loading…
Cancel
Save