From 533c86de16775246302315943dedc37de858743e Mon Sep 17 00:00:00 2001 From: petosorus Date: Thu, 15 Sep 2016 11:20:45 +0200 Subject: [PATCH] Removal of empty lines when there are empty slots --- service/port.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/service/port.py b/service/port.py index bbff8be2d..577bae897 100644 --- a/service/port.py +++ b/service/port.py @@ -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: