mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 13:08:31 +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
|
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"]:
|
if config["template"]:
|
||||||
template_filename = Path(config["template"]).name
|
template_filename = Path(config["template"]).name
|
||||||
suffix = "-" + template_filename
|
suffix = "-" + template_filename
|
||||||
|
|
Loading…
Add table
Reference in a new issue