From 75a42ec54dbf721caa659ddf02c1f46fc2cb4bef Mon Sep 17 00:00:00 2001 From: mlot Date: Fri, 6 Jun 2025 13:40:57 -0400 Subject: initial commit for archiving --- Chap6ProjBulletsWiki.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Chap6ProjBulletsWiki.py (limited to 'Chap6ProjBulletsWiki.py') diff --git a/Chap6ProjBulletsWiki.py b/Chap6ProjBulletsWiki.py new file mode 100644 index 0000000..4194a63 --- /dev/null +++ b/Chap6ProjBulletsWiki.py @@ -0,0 +1,16 @@ +#! /usr/bin/env python3 + +# Bullets to Wiki Markup Chap. 6 +# Copies text from clipboard, adds a star to each line, pastes to clipboard. + +import pyperclip + +text = pyperclip.paste() + +lines = text.split('\n') +for i in range(len(lines)): + lines[i] = '* ' + lines[i] + +text = '\n'.join(lines) + +pyperclip.copy(text) -- cgit