mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
ui: format 'display-hint' output when no arguments are passed.
When display-hint is given format specifiers such as "~%" but no arguments, it does not format the output, causing the specifiers to be visible in the displayed text. * guix/ui.scm (display-hint): Format output when no arguments are passed. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
d15dbdb79c
commit
2135f69dc0
1 changed files with 1 additions and 1 deletions
|
|
@ -323,7 +323,7 @@ other objects that must match the 'format' escapes in MESSAGE."
|
||||||
;; XXX: We should arrange so that the initial indent is wider.
|
;; XXX: We should arrange so that the initial indent is wider.
|
||||||
(parameterize ((%text-width (max 15 (- (terminal-columns) 5))))
|
(parameterize ((%text-width (max 15 (- (terminal-columns) 5))))
|
||||||
(texi->plain-text (match arguments
|
(texi->plain-text (match arguments
|
||||||
(() message)
|
(() (format #f message))
|
||||||
(_ (apply format #f message
|
(_ (apply format #f message
|
||||||
(map (match-lambda
|
(map (match-lambda
|
||||||
((? string? str)
|
((? string? str)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue