mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 04:58:32 +02:00
Make suffix local variable in get_text_from_editor
This commit is contained in:
parent
d5bc066483
commit
f527a93d5d
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,8 @@ from .color import RESET_COLOR
|
|||
from .os_compat import on_windows
|
||||
|
||||
|
||||
def get_text_from_editor(config, template="", suffix=".jrnl"):
|
||||
def get_text_from_editor(config, template=""):
|
||||
suffix = ".jrnl"
|
||||
if config["template"]:
|
||||
template_filename = Path(config["template"]).name
|
||||
suffix = "-" + template_filename
|
||||
|
|
Loading…
Add table
Reference in a new issue