Skip to content

Commit

Permalink
Copy button in the terminal IndianOpenSourceFoundation#177 (Update_6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aspireve committed Jul 30, 2022
1 parent dc10828 commit c885661
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dynamic/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def navigate_questions_panel(self, playbook=False):
code = "" # "code" will be edited later
i = 0
flag = False
self.dbmd = "'''" + self.dbmd + "'''"
self.dbmd = "'''" + self.dbmd + "'''"
#to avoid situstion where text break due to any other colons in the middle
while i <len(self.dbmd):
counter = 0
Expand Down Expand Up @@ -347,12 +347,12 @@ def navigate_questions_panel(self, playbook=False):
#checks if the next 4 spots are spaces aswell indicating continuation of snippet
while((self.dbmd[i] != '\n' and self.dbmd[i] != '\r') and i+1 < len(self.dbmd) ):
code += self.dbmd[i]
i += 1
i += 1
else:
break
i += 1
if flag:
#breaks if code is finished
#breaks if code is finished
break
pc.copy(code)
console.print("\nCopied Sucessfully !!\n")
Expand Down

0 comments on commit c885661

Please sign in to comment.