Skip to content

Commit 37a0800

Browse files
committed
Ignore leading whitespace on consecutive lines of flag docs
1 parent c4c96cd commit 37a0800

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Unreleased
22

3-
## Added
4-
53
## Fixed
64

7-
## Changed
5+
- Ignore leading whitespace on consecutive lines of flag docs
86

97
# 1.27.121 (2025-10-27 / 8245765)
108

src/lambdaisland/cli.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
(if required "(required)" "")]]
101101
(map (fn [l]
102102
["" l ""]))
103-
(next (str/split (or doc "") #"\R")))))))))
103+
(next (map str/trim (str/split (or doc "") #"\R"))))))))))
104104
(when (seq command-pairs)
105105
(println "\nSUBCOMMANDS")
106106
(print-table

0 commit comments

Comments
 (0)