From aeafcd36c9214e8a70215eee6dfa01abd36babab Mon Sep 17 00:00:00 2001 From: Eshan Ramesh Date: Tue, 19 May 2020 16:08:42 -0400 Subject: [PATCH] revert title-body switch --- jrnl/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jrnl/util.py b/jrnl/util.py index 2a685be4..05d6d2ca 100644 --- a/jrnl/util.py +++ b/jrnl/util.py @@ -254,5 +254,5 @@ def split_title(text): """Splits the first sentence off from a text.""" punkt = SENTENCE_SPLITTER.search(text.strip()) if not punkt: - return text,"" + return "",text return text[: punkt.end()].strip(), text[punkt.end() :].strip()