mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 21:18:32 +02:00
parent
0c0049166f
commit
baeb8c143c
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ class Entry:
|
||||||
def _parse_text(self):
|
def _parse_text(self):
|
||||||
raw_text = self.text
|
raw_text = self.text
|
||||||
lines = raw_text.splitlines()
|
lines = raw_text.splitlines()
|
||||||
if lines[0].strip().endswith("*"):
|
if lines and lines[0].strip().endswith("*"):
|
||||||
self.starred = True
|
self.starred = True
|
||||||
raw_text = lines[0].strip("\n *") + "\n" + "\n".join(lines[1:])
|
raw_text = lines[0].strip("\n *") + "\n" + "\n".join(lines[1:])
|
||||||
self._title, self._body = split_title(raw_text)
|
self._title, self._body = split_title(raw_text)
|
||||||
|
|
Loading…
Add table
Reference in a new issue