Add property removal behavior: specifying a property with no value removes it.

This commit is contained in:
Jonathan Bernard 2019-01-24 22:30:20 -06:00
parent 65edc56e08
commit 476a94c679
2 changed files with 3 additions and 2 deletions

View File

@ -146,7 +146,8 @@ proc toStorageFormat*(issue: Issue, withComments = false): string =
if withComments: lines.add("# Summary (one line):")
lines.add(issue.summary)
if withComments: lines.add("# Properties (\"key:value\" per line):")
for key, val in issue.properties: lines.add(key & ": " & val)
for key, val in issue.properties:
if not val.isNilOrWhitespace: lines.add(key & ": " & val)
if issue.tags.len > 0: lines.add("tags: " & issue.tags.join(","))
if not isNilOrWhitespace(issue.details) or withComments:
if withComments: lines.add("# Details go below the \"--------\"")

View File

@ -1 +1 @@
const PIT_VERSION* = "4.4.4"
const PIT_VERSION* = "4.5.0"