diff options
-rwxr-xr-x | .git-hooks/pre-commit | 4 |
1 files changed, 4 insertions, 0 deletions
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 ((/<toolbar:toolbaritem/) and not(/\/>/)) + { + bad_line("Use /> to close toolbar:toolbaritem", $_, "xml"); + } if (/<property name="use[-_]markup">True<\/property>/) { bad_line("use font attributes instead of use-markup", $_, "ui"); |