diff options
author | Arun Isaac | 2023-01-22 22:38:58 +0000 |
---|---|---|
committer | Arun Isaac | 2023-01-23 00:28:11 +0000 |
commit | d1df6854fb487ce42150e6c7c393279f1c4f0ab5 (patch) | |
tree | b75d43ee3abab5377f211d386c766861a7092cf2 | |
parent | bdc092231eaf6dd1cd226d0bd6c6f429e21057e6 (diff) | |
download | tissue-d1df6854fb487ce42150e6c7c393279f1c4f0ab5.tar.gz tissue-d1df6854fb487ce42150e6c7c393279f1c4f0ab5.tar.lz tissue-d1df6854fb487ce42150e6c7c393279f1c4f0ab5.zip |
issues: Allow checkboxes without a space.
* issues/allow-checkboxes-without-a-space.gmi: New file.
* tissue/issue.scm (file-details): Add TODO note.
-rw-r--r-- | issues/allow-checkboxes-without-a-space.gmi | 12 | ||||
-rw-r--r-- | tissue/issue.scm | 3 |
2 files changed, 14 insertions, 1 deletions
diff --git a/issues/allow-checkboxes-without-a-space.gmi b/issues/allow-checkboxes-without-a-space.gmi new file mode 100644 index 0000000..c8d93d1 --- /dev/null +++ b/issues/allow-checkboxes-without-a-space.gmi @@ -0,0 +1,12 @@ +# Allow checkboxes without a space + +* tags: bug + +Checkboxes without a space in them are not detected correctly by our issue gemtext parser. They should be. + +In the example below, the first checklist item is not detected correctly. +``` +* [] Checkbox without a space +* [ ] Checkbox with a space +* [x] Completed checkbox +``` diff --git a/tissue/issue.scm b/tissue/issue.scm index e20b4d0..6000ebd 100644 --- a/tissue/issue.scm +++ b/tissue/issue.scm @@ -1,5 +1,5 @@ ;;; tissue --- Text based issue tracker -;;; Copyright © 2022 Arun Isaac <arunisaac@systemreboot.net> +;;; Copyright © 2022, 2023 Arun Isaac <arunisaac@systemreboot.net> ;;; Copyright © 2022 Frederick Muriuki Muriithi <fredmanglis@gmail.com> ;;; ;;; This file is part of tissue. @@ -215,6 +215,7 @@ gemtext file." ;; checkbox has any character other ;; than space in it, the task is ;; completed. + ;; TODO: Allow [] and not just [ ] (that is, without a space). ((string-match "^\\* \\[(.)\\]" line) => (lambda (m) (hashtable-update! result 'tasks 1+ 0) |