mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-29 14:06:14 +02:00
Emoji support
This commit is contained in:
parent
6521d55a2b
commit
3a4c87ca4c
2 changed files with 11 additions and 2 deletions
|
@ -171,8 +171,9 @@ def cli(manual_args=None):
|
|||
# Writing mode
|
||||
if mode_compose:
|
||||
raw = " ".join(args.text).strip()
|
||||
unicode_raw = raw.decode(sys.getfilesystemencoding())
|
||||
entry = journal.new_entry(unicode_raw, args.date)
|
||||
if type(raw) is not unicode:
|
||||
raw = raw.decode(sys.getfilesystemencoding())
|
||||
entry = journal.new_entry(raw, args.date)
|
||||
entry.starred = args.star
|
||||
print("[Entry added to {0} journal]".format(journal_name))
|
||||
journal.write()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue