diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit
index 8dc4a6b751c4..f3ea7b093895 100755
--- a/.git-hooks/pre-commit
+++ b/.git-hooks/pre-commit
@@ -98,6 +98,10 @@ sub check_whitespaces($)
{
bad_line("OOXMLEXPORT definition used in a ooxmlimport file", $_, "cxx");
}
+ if ((//))
+ {
+ bad_line("Use /> to close toolbar:toolbaritem", $_, "xml");
+ }
if (/True<\/property>/)
{
bad_line("use font attributes instead of use-markup", $_, "ui");