From 793d0ee579ace4e7edeaf84ce52f998bd3077b2d Mon Sep 17 00:00:00 2001 From: Logen Kain Date: Wed, 10 Jan 2024 12:51:35 -0500 Subject: [PATCH] Add clipboard support --- eve-scanning.py | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/eve-scanning.py b/eve-scanning.py index 7584901..aee5da5 100644 --- a/eve-scanning.py +++ b/eve-scanning.py @@ -46,23 +46,28 @@ for line in range(len(splitContents)): splitContents.sort() #print out -prettyPrint = [] +prettyPrint = "" print ("```") -prettyPrint.append("```") +prettyPrint += "```\n" instructions() -prettyPrint.append(instructions()) +prettyPrint += instructions() last = "nullnope" for line in range(len(splitContents)): try: if last != splitContents[line][0]: print(splitContents[line][0]) - prettyPrint.append(splitContents[line][0]) + prettyPrint += str(splitContents[line][0]) + prettyPrint += "\n" last = splitContents[line][0] - print("\t", splitContents[line][1]) - prettyPrint.append(splitContents[line][1]) + print("\t", splitContents[line][1]) + prettyPrint += "\t" + prettyPrint += str(splitContents[line][1]) + prettyPrint += "\n" + except: break print ("```") -prettyPrint.append("```") -pyperclip.copy(prettyPrint) +prettyPrint += ("```") +#pyperclip.copy(prettyPrint.join(" ")) +print(prettyPrint)