Don't ignore '#' in issue details.

This commit is contained in:
2026-02-24 08:57:09 -06:00
parent 3d8fafd7b2
commit e35bd9f85a
3 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
# Package
version = "4.32.1"
version = "4.33.0"
author = "Jonathan Bernard"
description = "Personal issue tracker."
license = "MIT"

View File

@@ -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]

View File

@@ -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