No description
Find a file
Dennis Schridde 9f8a4c8161 Fix on-modify.timewarrior hook for tasks with multi line description
If the description contained multiple lines, it would be formatted as a
bytes object, including Python's `b""` marker for byte literals and any
newlines.  This would then be passed literally to `timew`, which would
then choke on it, because it would record the newlines in its database.

This patch simply gets rid of the string join/split operations and the
encoding, which solves the issue.

Since we pass arrays instead of strings to `subprocess.call`, we are not
subject to command injection security vulnerabilities.

Fixes: 0b6dbf7e12d30fc791a524501e3483989a092a8c
2021-05-10 21:43:26 +02:00
test Add output of new-tag-warnings to check 2021-05-10 21:43:26 +02:00
on-modify.timewarrior Fix on-modify.timewarrior hook for tasks with multi line description 2021-05-10 21:43:26 +02:00