diff --git a/jrnl/editor.py b/jrnl/editor.py index ff304826..81ca659a 100644 --- a/jrnl/editor.py +++ b/jrnl/editor.py @@ -58,9 +58,9 @@ def get_text_from_stdin(): MsgText.WritingEntryStart, MsgType.TITLE, { - "how_to_quit": MsgText.HowToQuitWindows.value + "how_to_quit": MsgText.HowToQuitWindows if on_windows() - else MsgText.HowToQuitLinux.value + else MsgText.HowToQuitLinux }, ) ) diff --git a/jrnl/messages.py b/jrnl/messages.py index 41b76e3d..cbbf7936 100644 --- a/jrnl/messages.py +++ b/jrnl/messages.py @@ -21,6 +21,8 @@ class MsgType(Enum): class MsgText(Enum): + def __str__(self) -> str: + return self.value # --- Exceptions ---# UncaughtException = """