Output special character "%"

printf the special character for "things" is % + STUFF, so if you want just a % you have to use the special character % and then combine it with % to get a single %
This commit is contained in:
sophia 2021-05-11 15:36:24 -05:00 committed by Paul Hinze
parent 1c63921a6c
commit f670b7ca5b
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -296,7 +296,7 @@ module Vagrant
# This method handles actually outputting a message of a given type
# to the console.
def say(type, message, opts={})
@client.output([message])
@client.output([message.gsub("%", "%%")])
end
[:detail, :info, :warn, :error, :output, :success].each do |method|