Removal of empty lines when there are empty slots

This commit is contained in:
petosorus
2016-09-15 11:20:45 +02:00
parent ba3c9b87b5
commit 533c86de16

View File

@@ -861,7 +861,6 @@ class Port(object):
@staticmethod
def exportMultiBuy(fit):
offineSuffix = " /OFFLINE"
export = "%s\n" % (fit.ship.item.name)
stuff = {}
sFit = service.Fit.getInstance()
@@ -869,13 +868,10 @@ class Port(object):
slot = module.slot
if not slot in stuff:
stuff[slot] = []
curr = module.item.name if module.item else (
curr = "%s\n" % module.item.name if module.item else (
"")
if module.charge and sFit.serviceFittingOptions["exportCharges"]:
curr += "\n%s" % module.charge.name
if module.state == State.OFFLINE:
curr += offineSuffix
curr += "\n"
curr += "%s\n" % module.charge.name
stuff[slot].append(curr)
for slotType in EFT_SLOT_ORDER: