Changes

Fix sortno rendering
Line 44: Line 44:  
     '<td colspan="3" class="double-image" style="width:240px;height:60px">' .. BannerImg .. BannerDmgImg .. "</td>"
 
     '<td colspan="3" class="double-image" style="width:240px;height:60px">' .. BannerImg .. BannerDmgImg .. "</td>"
 
   local dispNo = U.split(ship.no, "-")[1] or "?"
 
   local dispNo = U.split(ship.no, "-")[1] or "?"
   local sortNo = ship.sortno and formatTooltip(dispNo, string.format("%d ", ship.sortno)) or dispNo
+
   local sortNo = ship.sortno
   local row1 = "<tr>" .. Cards .. '<th style="text-align: center;">' .. sortNo .. "</th>" .. Banners .. "</tr>"
+
  local sortNoText = sortNo and (sortNo > 1000 and formatTooltip(dispNo, string.format("%d ", sortNo)) or sortNo) or dispNo
 +
   local row1 = "<tr>" .. Cards .. '<th style="text-align: center;">' .. sortNoText .. "</th>" .. Banners .. "</tr>"
 
   -- Formatting Japanese
 
   -- Formatting Japanese
 
   local kanji, form
 
   local kanji, form
354

edits