summaryrefslogtreecommitdiff
path: root/.git-hooks
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-12-21 14:00:42 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-12-22 10:16:42 +0100
commit4491cee27c80bc83493136b323af5bdd128352e7 (patch)
tree3e05e3b089b28943bef5fbb36552e4116bab3369 /.git-hooks
parente5cf818c887fdd0ab43b5434d39cd9d3fde997e6 (diff)
replace margin-left with margin-start and margin-right with margin-end
Change-Id: Iee3cc8c22b393ca420d0ed68673c61fe7ef240ba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108113 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to '.git-hooks')
-rwxr-xr-x.git-hooks/pre-commit14
1 files changed, 11 insertions, 3 deletions
diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit
index fd0cfeea2e62..8470d4b2631b 100755
--- a/.git-hooks/pre-commit
+++ b/.git-hooks/pre-commit
@@ -93,13 +93,21 @@ sub check_whitespaces($)
{
bad_line("OOXMLEXPORT definition used in a ooxmlimport file", $_, "cxx");
}
- if (/<property name="use_markup">True<\/property>/)
+ if (/<property name="use[-_]markup">True<\/property>/)
{
bad_line("use font attributes instead of use-markup", $_, "ui");
}
- if (/<property name="tooltip_markup"/ )
+ if (/<property name="tooltip[-_]markup"/ )
{
- bad_line("use tooltip_text instead of tooltip_markup", $_, "ui");
+ bad_line("use tooltip-text instead of tooltip_markup", $_, "ui");
+ }
+ if (/<property name="margin[-_]left"/ )
+ {
+ bad_line("use margin-start instead of margin-left", $_, "ui");
+ }
+ if (/<property name="margin[-_]right"/ )
+ {
+ bad_line("use margin-end instead of margin-right", $_, "ui");
}
if ((/translatable="yes"/) and not(/context=/))
{