Skip to content

Commit

Permalink
Merge pull request #133 from nnichols/main
Browse files Browse the repository at this point in the history
Fix `normalize-and-pad-markup` to skip actually padding
  • Loading branch information
hlship authored Jan 22, 2025
2 parents 977d2f2 + 617f065 commit 7e92323
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/clj_commons/ansi.clj
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@
;; If at or over desired width, don't need to pad
(if (<= width actual-width)
{:width actual-width
:span inputs'})
;; Add the padding in the desired position(s); this ensures that the logic that generates
;; ANSI escape codes occurs correctly, with the added spaces getting the font for this span.
{:width width
:span (apply-padding inputs' pad width actual-width)}))
:span inputs'}
;; Add the padding in the desired position(s); this ensures that the logic that generates
;; ANSI escape codes occurs correctly, with the added spaces getting the font for this span.
{:width width
:span (apply-padding inputs' pad width actual-width)})))


(defn- normalize-markup
Expand Down

0 comments on commit 7e92323

Please sign in to comment.