ref: 20719d1f36acb795d81397b2a3a5b555079d5d79
parent: 460d2d0fcf6cb75fabd5001bec5d0eb96dcc4458
author: Michael Misch <michaelmisch1985@gmail.com>
date: Fri Nov 29 12:31:29 PST 2019
Allow em, why not
--- a/layout.go
+++ b/layout.go
@@ -87,7 +87,11 @@
if len(sc.Text()) == 0 {
return tasks
}
- sc.Scan()
+ if strings.HasPrefix(title, "[ ]") || strings.HasPrefix(title, "[x]") {
+ title = ""
+ } else {
+ sc.Scan()
+ }
t := &Task{
Title: title,
Entries: findEntries(sc),
--- a/samples/.todo
+++ b/samples/.todo
@@ -19,7 +19,6 @@
[ ] sample.sh: return
[example]:
-I guess they shouldn't be optional
[x] general: Show how headers are optional
[x] general: Show something silly