Skip to content

Commit

Permalink
Copy button in the terminal IndianOpenSourceFoundation#177 (Update_4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aspireve committed Jul 30, 2022
1 parent 19063e2 commit 502f230
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dynamic/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from error import SearchError
from save import SaveSearchResults
from markdown import MarkdownRenderer
# from markdown import MarkdownRenderer
from settings import PLAYBOOK_FILE

# Required for OAuth
Expand Down Expand Up @@ -324,12 +324,14 @@ def navigate_questions_panel(self, playbook=False):
if self.dbmd[i] == " ":
while(i<len(self.dbmd)):
if self.dbmd[i] == " ":
if counter == 4:
break
counter +=1
i += 1
else:
break
# checks if there are 4 spaces, the basic format for a markdown code input
if (counter>0) and (counter % 4 == 0):
if counter == 4:
flag = True
# once code beginning is found we go till the end of that code only and stop where that snippet stops
while((self.dbmd[i] != '\n' and self.dbmd[i] != '\r') and i+1 < len(self.dbmd) ):
Expand Down

0 comments on commit 502f230

Please sign in to comment.