Handle empty checklists

If there were no items we were ignoring the checklist. Added some extra
tests as well.

Fixes #148
This commit is contained in:
Vishesh Handa
2020-05-26 13:42:31 +02:00
parent 0d3648768c
commit bcbf54106f
2 changed files with 34 additions and 2 deletions

View File

@ -91,8 +91,6 @@ class Checklist {
}
Note get note {
if (_lines.isEmpty) return _note;
for (var item in items) {
_lines[item.lineNo] = item.toString();
}