Add clipboard support
This commit is contained in:
parent
d2256217cc
commit
793d0ee579
@ -46,23 +46,28 @@ for line in range(len(splitContents)):
|
|||||||
splitContents.sort()
|
splitContents.sort()
|
||||||
|
|
||||||
#print out
|
#print out
|
||||||
prettyPrint = []
|
prettyPrint = ""
|
||||||
print ("```")
|
print ("```")
|
||||||
prettyPrint.append("```")
|
prettyPrint += "```\n"
|
||||||
instructions()
|
instructions()
|
||||||
prettyPrint.append(instructions())
|
prettyPrint += instructions()
|
||||||
last = "nullnope"
|
last = "nullnope"
|
||||||
for line in range(len(splitContents)):
|
for line in range(len(splitContents)):
|
||||||
try:
|
try:
|
||||||
if last != splitContents[line][0]:
|
if last != splitContents[line][0]:
|
||||||
print(splitContents[line][0])
|
print(splitContents[line][0])
|
||||||
prettyPrint.append(splitContents[line][0])
|
prettyPrint += str(splitContents[line][0])
|
||||||
|
prettyPrint += "\n"
|
||||||
last = splitContents[line][0]
|
last = splitContents[line][0]
|
||||||
print("\t", splitContents[line][1])
|
print("\t", splitContents[line][1])
|
||||||
prettyPrint.append(splitContents[line][1])
|
prettyPrint += "\t"
|
||||||
|
prettyPrint += str(splitContents[line][1])
|
||||||
|
prettyPrint += "\n"
|
||||||
|
|
||||||
|
|
||||||
except:
|
except:
|
||||||
break
|
break
|
||||||
print ("```")
|
print ("```")
|
||||||
prettyPrint.append("```")
|
prettyPrint += ("```")
|
||||||
pyperclip.copy(prettyPrint)
|
#pyperclip.copy(prettyPrint.join(" "))
|
||||||
|
print(prettyPrint)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user