Skip to content

Commit

Permalink
Fix whitespace characters
Browse files Browse the repository at this point in the history
`split()` will remove the poor whitespace characters, even though
they're exactly what you wanted. So now we only `split` with spaces.

Thanks to @polyzen for finding the problem 🙂
  • Loading branch information
fdw committed Mar 23, 2020
1 parent 3dd6ea5 commit 79cad76
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# [4.1.1]
## Fixed
- Whitespace characters can be inserted

# [4.1.0]
## Changed
- The extractors have been rewritten: There are now many, *many* supported symbols (all that Unicode offers), but some may have been renamed.
Expand Down
4 changes: 2 additions & 2 deletions picker/rofimoji.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def parse_arguments() -> argparse.Namespace:
default_config_files=[os.path.join(directory, 'rofimoji.rc') for directory in
BaseDirectory.xdg_config_dirs]
)
parser.add_argument('--version', action='version', version='rofimoji 4.1.0')
parser.add_argument('--version', action='version', version='rofimoji 4.1.1')
parser.add_argument(
'--insert-with-clipboard',
'-p',
Expand Down Expand Up @@ -190,7 +190,7 @@ def process_chosen_characters(
) -> str:
result = ""
for line in chosen_characters:
character = line.decode('utf-8').split()[0]
character = line.decode('utf-8').split(" ")[0]

if character in skin_tone_selectable_emojis:
character = select_skin_tone(character, skin_tone, rofi_args)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='rofimoji',
version='4.1.0',
version='4.1.1',
description='Simple character picker using rofi',
author='fdw',
author_email='5821180+fdw@users.noreply.github.com',
Expand Down

0 comments on commit 79cad76

Please sign in to comment.