Skip to content

Commit 677f153

Browse files
Merge pull request steam-bell-92#940 from jyotish6699/fix/morse-whitespace-handling
fix: handle extra whitespace in Morse code input parsing
2 parents 85848db + c39d233 commit 677f153

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

utilities/Text-to-Morse/Text-to-Morse.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
print()
4848

4949
elif choice == '2':
50+
morse_input = input("\n📻 Enter Morse code (separate letters with space, words with ' / '): ")
51+
morse_chars = morse_input.strip().split()
5052
morse_input = input(
5153
"\n📻 Enter Morse code (separate letters with space, words with ' / '): "
5254
)

0 commit comments

Comments
 (0)