Skip to content

Commit

Permalink
Merge pull request #145 from kcalden/master
Browse files Browse the repository at this point in the history
Fix ref_separator not showing with alt refs
  • Loading branch information
SchrodingersGat authored Feb 11, 2021
2 parents 9fb56a6 + 2ba33e1 commit 93ab915
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kibom/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def __init__(self):
self.stack = []

def add(self, P, N):

if self.stack == []:
self.stack.append(((P, N), (P, N)))
return
Expand All @@ -488,15 +488,15 @@ def add(self, P, N):
self.stack.append(((P, N), (P, N)))

def flush(self, sep, N=None, dash='-'):

refstr = u''
c = 0

for Q in self.stack:
if bool(N) and c != 0 and c % N == 0:
refstr += u'\n'
elif c != 0:
refstr += sep
refstr += sep+" "

S, E = Q

Expand Down Expand Up @@ -589,7 +589,7 @@ def getAltRefs(self):
P, N = (n.getPrefix(), n.getSuffix())
S.add(P, N)

return S.flush(' ')
return S.flush(self.prefs.refSeparator)

# Sort the components in correct order
def sortComponents(self):
Expand Down

0 comments on commit 93ab915

Please sign in to comment.