Skip to content

Commit

Permalink
Frontend.Console: more copy-paste friendly things
Browse files Browse the repository at this point in the history
In Windows you can select addresses more easily by
double-clicking, but then we don't want square brackets to be
included.
  • Loading branch information
knocte committed Oct 6, 2023
1 parent 409e29f commit d00718d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/GWallet.Frontend.Console/UserInteraction.fs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ module UserInteraction =
| :? ReadOnlyAccount -> "(READ-ONLY)"
| _ -> String.Empty

let accountInfo = sprintf "Account %d: %s%sCurrency=[%A] Address=[%s]"
let accountInfo = sprintf "Account %d: %s%sCurrency=[ %A ] Address=[ %s ]"
accountNumber maybeReadOnly Environment.NewLine
account.Currency
account.PublicAddress
Expand All @@ -228,13 +228,13 @@ module UserInteraction =
| NotFresh(NotAvailable) ->
yield "Unknown balance (Network unreachable... off-line?)"
| NotFresh(Cached(balance,time)) ->
let status = sprintf "Last known balance=[%s] (as of %s) %s"
let status = sprintf "Last known balance=[ %s ] (as of %s) %s"
(balance |> Formatting.DecimalAmountRounding CurrencyType.Crypto)
(time |> Formatting.ShowSaneDate)
(BalanceInUsdString balance maybeUsdValue)
yield status
| Fresh(balance) ->
let status = sprintf "Balance=[%s] %s"
let status = sprintf "Balance=[ %s ] %s"
(balance |> Formatting.DecimalAmountRounding CurrencyType.Crypto)
(BalanceInUsdString balance maybeUsdValue)
yield status
Expand Down

0 comments on commit d00718d

Please sign in to comment.