Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/python3
- # Bulletpointadder.py -Adds bullet point to the copied text at start of each line.
- import pyperclip
- text = pyperclip.paste()
- # splits the text into a list of lines
- list = text.split('\n')
- for i in range(len(list)):
- list[i] = '* '+list[i] # adds * at the start of each line
- text = '\n'.join(list)
- pyperclip.copy(text) # copies the bulleted line on the clipboard
Advertisement
Add Comment
Please, Sign In to add comment