Merge branch 'stable'

This commit is contained in:
Nathan Weizenbaum 2008-11-28 15:44:23 -08:00
commit b597927bed
3 changed files with 2 additions and 1 deletions

View File

@ -113,6 +113,7 @@ text nested beneath them.")
(define-key map "\C-C\C-k" 'haml-kill-line-and-indent) (define-key map "\C-C\C-k" 'haml-kill-line-and-indent)
map)) map))
;;;###autoload
(define-derived-mode haml-mode fundamental-mode "Haml" (define-derived-mode haml-mode fundamental-mode "Haml"
"Major mode for editing Haml files. "Major mode for editing Haml files.

View File

@ -69,6 +69,7 @@ text nested beneath them.")
;; Mode setup ;; Mode setup
;;;###autoload
(define-derived-mode sass-mode haml-mode "Sass" (define-derived-mode sass-mode haml-mode "Sass"
"Major mode for editing Sass files." "Major mode for editing Sass files."
(set (make-local-variable 'haml-indent-function) 'sass-indent-p) (set (make-local-variable 'haml-indent-function) 'sass-indent-p)

View File

@ -148,7 +148,6 @@ module Haml
output += haml_attributes if attributes.length > 0 output += haml_attributes if attributes.length > 0
end end
output += "/" if children.length == 0
output += "\n" output += "\n"
self.children.each do |child| self.children.each do |child|