timewarrior/ext
Dennis Schridde 61a4749d75 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: 0b6dbf7e12
2019-08-22 21:39:11 +02:00
..
CMakeLists.txt Extensions: Now installs on-modify.timewarrior 2016-08-07 18:07:51 -04:00
csv.py extensions: Make extensions conform with PEP8 2017-03-01 21:20:35 +01:00
debug.py extensions: Make extensions conform with PEP8 2017-03-01 21:20:35 +01:00
on-modify.timewarrior Fix on-modify.timewarrior hook for tasks with multi line description 2019-08-22 21:39:11 +02:00
README Rework markdown 2018-12-21 12:48:22 +01:00
totals.py Refactor totals.py 2018-05-10 19:22:34 +02:00

# Timewarrior Extensions

## debug.py
  This is a debug extension that simply echoes back everything it sees in its input.
  It's useful for debugging to see how the command line affects what an extension sees.
  This will likely be removed before release.

## on-modify.timewarrior
  This is a Taskwarrior hook script that will integrate Timewarrior.

## csv.py
  This extension exports the data in CSV format, with a variable number of tag fields.

## totals.py
  Sample extension report that shows totals by tag.