From 505bc7a0a68922dbd71ef0c4a77f38ee0f68306a Mon Sep 17 00:00:00 2001 From: Durel Date: Mon, 9 Oct 2017 22:27:33 -0400 Subject: [PATCH] 1) Fixed priority display on windows (use \r\n instead of \n) --- aard_inventory.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aard_inventory.xml b/aard_inventory.xml index 06fef0b..08871f4 100644 --- a/aard_inventory.xml +++ b/aard_inventory.xml @@ -10811,11 +10811,11 @@ function inv.priority.tableToString(priorityTable, doDisplayUnused, doDisplayCol end -- for -- 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 priString = priString .. string.format(" %s%3d%s", levelPrefix, blockEntry.maxLevel, levelSuffix) end -- for - priString = priString .. "\n" .. generalSuffix + priString = priString .. "\r\n" .. generalSuffix for _, fieldEntry in ipairs(inv.priority.fieldTable) do local fieldName = fieldEntry[1] @@ -10838,7 +10838,7 @@ function inv.priority.tableToString(priorityTable, doDisplayUnused, doDisplayCol end -- if 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 local fieldValue = tonumber(blockEntry.priorities[fieldName] or "") or 0