lib/jekyll/log_adapter.rb in jekyll-3.2.0.pre.beta1 vs lib/jekyll/log_adapter.rb in jekyll-3.2.0.pre.beta2

- old
+ new

@@ -5,11 +5,11 @@ LOG_LEVELS = { :debug => ::Logger::DEBUG, :info => ::Logger::INFO, :warn => ::Logger::WARN, :error => ::Logger::ERROR - } + }.freeze # Public: Create a new instance of a log writer # # writer - Logger compatible instance # log_level - (optional, symbol) the log level @@ -96,10 +96,10 @@ # topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc. # message - the message detail # # Returns the formatted message def message(topic, message) - msg = formatted_topic(topic) + message.to_s.gsub(/\s+/, ' ') + msg = formatted_topic(topic) + message.to_s.gsub(%r!\s+!, " ") messages << msg msg end # Internal: Format the topic