 
     render_idclass: (str) ->
       classes = []
-        
+
       for i in str.split '.'
         if '#' in i
           id = i.replace '#', ''
         else
           classes.push i unless i is ''
-            
+
       text " id=\"#{id}\"" if id
-      
+
       if classes.length > 0
         text " class=\""
         for c in classes

  # Internal CoffeeKup stuff.
  __ck =
    buffer: []
      
    esc: (txt) ->
      if data.autoescape then h(txt) else String(txt)



    render_tag: (name, idclass, attrs, contents) ->
      @indent()

      text "<#{name}"
      @render_idclass(idclass) if idclass
      @render_attrs(attrs) if attrs

      if name in @self_closing
        text ' />'
        text '\n' if data.format
      else
        text '>'

        @render_contents(contents)

        text "</#{name}>"
        text '\n' if data.format

      null

  tag = (name, args...) ->
