     (case (first prev)
       (opened (indent-line-to (+ (second prev)
                                  sgml-basic-offset)))
+      (closed (indent-line-to (second prev)))
       (otherwise
        (let* ((savep (point))
               (indent-col (save-excursion
-                                 (back-to-indentation)
-                                 (if (>= (point) savep) (setq savep nil))
-                                 (sgml-calculate-indent))))
+                            (back-to-indentation)
+                            (if (>= (point) savep) (setq savep nil))
+                            (sgml-calculate-indent))))
          (cond
           ((eql (first prev) 'closed)
            (setf indent-col


(defvar *closure-template-let-keywords*
  `((,(rx "{"
          (group "let")
          (1+ space)
          (1+ (not (any "}")))
          (0+ space)
          "}")
     (1 closure-template-tag-face))
    (,(rx "{"
          (group "/let")
          "}")
     (1 closure-template-tag-face))))

(defun closure-template-html-font-lock-keywords-3 ()

      (otherwise (indent-line-to (- (second prev) sgml-basic-offset))))))

(defun closure-indent-line ()
  (cond
   ((closure-close) (indent-closure-close))
   ((closure-open) (indent-closure-open))
