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 23, 2024
1 parent 615beb8 commit a1673d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1034,8 +1034,7 @@ writeFilteredUTxOs sbe format mOutFile utxo =
filteredUTxOsToText :: Api.ShelleyBasedEra era -> UTxO era -> Text
filteredUTxOsToText sbe (UTxO utxo) = do
mconcat
[ title
, Text.replicate (Text.length title + 2) "-"
[ Text.unlines [title, Text.replicate (Text.length title + 2) "-"]
, Text.unlines $ case sbe of
ShelleyBasedEraShelley ->
map (utxoToText sbe) $ Map.toList utxo
Expand Down

0 comments on commit a1673d5

Please sign in to comment.