         break
       link = make_url(result._links.webui, false)
       msg.send "#{result.title} - #{link}"
-    
+
 make_headers = ->
 
   user = nconf.get("HUBOT_CONFLUENCE_USER")

    "HUBOT_CONFLUENCE_PORT"
    "HUBOT_CONFLUENCE_SEARCH_SPACE"
  ]
 
  for arg in required_args
    if !nconf.get(arg)
      buf = "#hubot-confluence is not properly configured. #{arg} is not set."

  else
    text_search = "title~\"#{query}\""

  query_str = "type=page and space in(#{space}) and #{text_search}"
  query_str =  encodeURIComponent query_str
  suffix = "/content/search?cql=#{query_str}"
  url = make_url(suffix, true)
