# Monkey patch the LogAdapter to change alignment of log messages

module Jekyll
  class LogAdapter
    def formatted_topic(topic)
      "#{topic} ".rjust(26)
    end
  end
end

# Monkey patch the LogAdapter to change alignment of log messages

module Jekyll
  class LogAdapter
    # Internal: Format the topic
    #
    # topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
    # colon -
    #
    # Returns the formatted topic statement
    def formatted_topic(topic, colon = false)
      "#{topic}#{colon ? ": " : " "}".rjust(26)
    end
  end
end

Fix our override of Jekyll.LogAdapter.formatted_topic
Fix our override of Jekyll.LogAdapter.formatted_topic

Breaks under Jekyll 3.7
