Browse Source

fix formatting

master
Christian Rotzoll 6 years ago
parent
commit
f8e4323b6b
  1. 6
      home.admin/config.scripts/lnd.initwallet.py

6
home.admin/config.scripts/lnd.initwallet.py

@ -67,10 +67,10 @@ if mode=="new":
# add a 6x4 formatted version to the output # add a 6x4 formatted version to the output
seedwords6x4="" seedwords6x4=""
for i in range(0,len(seedwords)): for i in range(0,len(seedwords)):
if (i % 6 == 0) && (i != 0): if i % 6 == 0 and i != 0:
seedwords6x4=seedwords6x4+"\n" seedwords6x4=seedwords6x4+"\n"
singleWord=(i+1)+":"+seedwords[i] singleWord=str(i+1)+":"+seedwords[i]
while len(singleWord)<12 while len(singleWord)<12:
singleWord=singleWord+" " singleWord=singleWord+" "
seedwords6x4=seedwords6x4+singleWord seedwords6x4=seedwords6x4+singleWord
print("seedwords6x4='"+seedwords6x4+"'") print("seedwords6x4='"+seedwords6x4+"'")

Loading…
Cancel
Save