   ##
   render: (commands) ->
     @_commands = commands
-    @_addWhitespace()
+    @_postMessage()
     @_printCommands()
     @_postMessage "Type '/help <command>' to see details about a specific command.",
         'notice help'

  #     readableName: string}>} hotkeys
  ##
  renderHotkeys: (hotkeys) ->
    @_addWhitespace()
    @_postMessage "Keyboard Shortcuts:", 'notice help'
    @_addWhitespace()
    @_printHotkeys hotkeys

  ##
  # Displays a list of hotkeys and their descriptions.
  # @param {Object.<string: {description: string, group: string,
  #     readableName: string}>} hotkeys
  ##
  _printHotkeys: (hotkeys) ->
    groupsVisited = {}
    for id, hotkeyInfo of hotkeys
      if hotkeyInfo.group

        name = hotkeyInfo.readableName
      @_postMessage "  #{name}: #{hotkeyInfo.description}", 'notice help'

exports.HelpMessageRenderer = HelpMessageRenderer