Don't ignore '#' in issue details.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Package
|
||||
|
||||
version = "4.32.1"
|
||||
version = "4.33.0"
|
||||
author = "Jonathan Bernard"
|
||||
description = "Personal issue tracker."
|
||||
license = "MIT"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const PIT_VERSION* = "4.32.1"
|
||||
const PIT_VERSION* = "4.33.0"
|
||||
|
||||
const USAGE* = """Usage:
|
||||
pit ( new | add) <summary> [<state>] [options]
|
||||
|
||||
@@ -230,7 +230,9 @@ proc fromStorageFormat*(id: string, issueTxt: string): Issue =
|
||||
var detailLines: seq[string] = @[]
|
||||
|
||||
for line in issueTxt.splitLines():
|
||||
if line.startsWith("#"): continue # ignore lines starting with '#'
|
||||
if line.startsWith("#") and parseState != ReadingDetails:
|
||||
# ignore lines starting with '#', unless we're in the details section.
|
||||
continue
|
||||
|
||||
case parseState
|
||||
|
||||
|
||||
Reference in New Issue
Block a user