Do not ignore comment lines by default

The default behavior should probably be the standard behavior
This commit is contained in:
Brian Buller 2019-02-04 04:38:59 +00:00
parent 97a991fa26
commit 239b7c535c

View File

@ -21,12 +21,12 @@ import (
// It is usually loaded from a whole todo.txt file. // It is usually loaded from a whole todo.txt file.
type TaskList []Task type TaskList []Task
// IgnoreComments can be set to 'false', in order to revert to a more standard todo.txt behaviour. // IgnoreComments can be set to 'true', to ignore lines that start with #
// The todo.txt format does not define comments. // The todo.txt format does not define comments.
var ( var (
// IgnoreComments is used to switch ignoring of comments (lines starting with "#"). // IgnoreComments is used to switch ignoring of comments (lines starting with "#").
// If this is set to 'false', then lines starting with "#" will be parsed as tasks. // If this is set to 'false', then lines starting with "#" will be parsed as tasks.
IgnoreComments = true IgnoreComments = false
) )
// NewTaskList creates a new empty TaskList. // NewTaskList creates a new empty TaskList.