diff --git a/rc/base/html.kak b/rc/base/html.kak
index aa3fe740..ecf330f1 100644
--- a/rc/base/html.kak
+++ b/rc/base/html.kak
@@ -51,8 +51,7 @@ define-command -hidden html-indent-on-new-line %{
# filter previous line
try %{ execute-keys -draft k : html-filter-around-selections }
# indent after lines ending with opening tag
- try %{ execute-keys -draft k <[^/][^>]+>$ j }
- }
+ try %{ execute-keys -draft k (?!area)(?!base)(?!br)(?!col)(?!command)(?!embed)(?!hr)(?!img)(?!input)(?!keygen)(?!link)(?!menuitem)(?!meta)(?!param)(?!source)(?!track)(?!wbr)(?!/)(?!>)[a-zA-Z0-9_-]+[^>]*?>$ j } }
}
# Initialization