diff --git a/bugwarrior/services/logseq.py b/bugwarrior/services/logseq.py index 7229d727..6927f646 100644 --- a/bugwarrior/services/logseq.py +++ b/bugwarrior/services/logseq.py @@ -168,10 +168,11 @@ def _compress_tag_format(self, tag): # get an optimized and formatted title def get_formatted_title(self): - # use first line only and remove priority + # use first line only and remove state and priority first_line = ( self.record["content"] .split("\n")[0] # only use first line + .split(self.get_logseq_state() + " ")[1] # remove state marker .replace("[#A] ", "") # remove priority markers .replace("[#B] ", "") .replace("[#C] ", "") diff --git a/tests/test_logseq.py b/tests/test_logseq.py index dc10b6e3..0b906f2f 100644 --- a/tests/test_logseq.py +++ b/tests/test_logseq.py @@ -67,7 +67,7 @@ def test_to_taskwarrior(self): issue.ID: int(self.test_record["id"]), issue.UUID: self.test_record["uuid"], issue.STATE: self.test_record["marker"], - issue.TITLE: "DOING Do something", + issue.TITLE: "Do something", issue.URI: "logseq://graph/Test?block-id=66699a83-3ee0-4edc-81c6-a24c9b80bec6", } @@ -95,7 +95,7 @@ def test_issues(self): issue.ID: int(self.test_record["id"]), issue.UUID: self.test_record["uuid"], issue.STATE: self.test_record["marker"], - issue.TITLE: "DOING Do something", + issue.TITLE: "Do something", issue.URI: "logseq://graph/Test?block-id=66699a83-3ee0-4edc-81c6-a24c9b80bec6", }