Skip to content

Commit

Permalink
Add missing newlines to cardano-cli query utxo output
Browse files Browse the repository at this point in the history
Text output is missing newlines after title line and underline.

Fixes #619
  • Loading branch information
mkoura committed Feb 22, 2024
1 parent 615beb8 commit 3a779ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,9 @@ filteredUTxOsToText :: Api.ShelleyBasedEra era -> UTxO era -> Text
filteredUTxOsToText sbe (UTxO utxo) = do
mconcat
[ title
, "\n"
, Text.replicate (Text.length title + 2) "-"
, "\n"
, Text.unlines $ case sbe of
ShelleyBasedEraShelley ->
map (utxoToText sbe) $ Map.toList utxo
Expand Down

0 comments on commit 3a779ec

Please sign in to comment.